From e0f5f13a5ada89dd9562d55c328bd261fbb685a9 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 7 Sep 2021 18:09:43 -0700 Subject: [PATCH 1/2] Fixes guessing read dates from goodreads csv --- bookwyrm/models/import_job.py | 1 + 1 file changed, 1 insertion(+) 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, From 2a93a8ea660a9074097eaccf537768b1fc835b71 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 7 Sep 2021 18:16:26 -0700 Subject: [PATCH 2/2] Adds class to status page --- bookwyrm/templates/import_status.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 %}