forked from mirrors/bookwyrm
Merge pull request #1377 from bookwyrm-social/fix-imported-read-dates
Fix imported read dates
This commit is contained in:
commit
eb93abceb2
2 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
<div class="block">
|
||||
<h2 class="title is-4">{% trans "Failed to load" %}</h2>
|
||||
{% if not job.retry %}
|
||||
<form name="retry" action="/import/{{ job.id }}" method="post">
|
||||
<form name="retry" action="/import/{{ job.id }}" method="post" class="box">
|
||||
{% csrf_token %}
|
||||
|
||||
{% with failed_count=failed_items|length %}
|
||||
|
|
Loading…
Reference in a new issue