From 6c56b786eb3f2713a68f424a4df178062c7daab3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 30 Dec 2023 13:06:24 +0000 Subject: [PATCH] Use updated date if available --- reading.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reading.py b/reading.py index 3260ee14e..72ada0d21 100644 --- a/reading.py +++ b/reading.py @@ -200,6 +200,8 @@ def _add_book_to_reader(reader_books_json: {}, book_dict: {}) -> None: if 'timeline' not in reader_books_json: reader_books_json['timeline'] = {} published = book_dict['published'] + if book_dict.get('updated'): + published = book_dict['updated'] post_time_object = \ date_from_string_format(published, ["%Y-%m-%dT%H:%M:%S%z"]) if post_time_object: