From bb1719e0d6c0f2cedd5a696cc5cbebf058b1d022 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Tue, 17 Dec 2019 09:41:07 -0800 Subject: [PATCH] Store update time in cell state --- inquisitor/importer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inquisitor/importer.py b/inquisitor/importer.py index 6341fa0..fcc7a94 100644 --- a/inquisitor/importer.py +++ b/inquisitor/importer.py @@ -97,6 +97,9 @@ def update_source(source_name, fetch_new): file_path = os.path.join(DUNGEON_PATH, prior_item['source'], prior_item['id'] + ".item") os.remove(file_path) + # Note update timestamp in state + state['last_updated'] = timestamp.now() + # Return counts return new_count, del_count