diff --git a/bookwyrm/models/import_job.py b/bookwyrm/models/import_job.py index 05aada16..69d5f5da 100644 --- a/bookwyrm/models/import_job.py +++ b/bookwyrm/models/import_job.py @@ -174,6 +174,7 @@ class ImportItem(models.Model): if start_date and start_date is not None and not self.date_read: return [ReadThrough(start_date=start_date)] if self.date_read: + start_date = start_date if start_date < self.date_read else None return [ ReadThrough( start_date=start_date, diff --git a/bookwyrm/templates/import_status.html b/bookwyrm/templates/import_status.html index db7330bb..94449f26 100644 --- a/bookwyrm/templates/import_status.html +++ b/bookwyrm/templates/import_status.html @@ -40,7 +40,7 @@

{% trans "Failed to load" %}

{% if not job.retry %} -
+ {% csrf_token %} {% with failed_count=failed_items|length %}