diff --git a/fedireads/models/import_job.py b/fedireads/models/import_job.py index fcb21654..2465fe12 100644 --- a/fedireads/models/import_job.py +++ b/fedireads/models/import_job.py @@ -111,12 +111,14 @@ class ImportItem(models.Model): @property def reads(self): - return [ReadThrough( - # date_added isn't the start date, but maybe better than nothing. - start_date=self.date_added, - finish_date=self.date_read, - pages_read=None, - )] + if (self.shelf == 'reading' + and self.date_added and not self.date_read): + return [ReadThrough(start_date=self.date_added)] + if self.date_read: + return [ReadThrough( + finish_date=self.date_read, + )] + return [] def __repr__(self): return "".format(self.data['Title'])