Store update time in cell state

This commit is contained in:
Tim Van Baak 2019-12-17 09:41:07 -08:00
parent 73c2319645
commit bb1719e0d6
1 changed files with 3 additions and 0 deletions

View File

@ -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