Store update time in cell state
This commit is contained in:
parent
73c2319645
commit
bb1719e0d6
|
@ -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")
|
file_path = os.path.join(DUNGEON_PATH, prior_item['source'], prior_item['id'] + ".item")
|
||||||
os.remove(file_path)
|
os.remove(file_path)
|
||||||
|
|
||||||
|
# Note update timestamp in state
|
||||||
|
state['last_updated'] = timestamp.now()
|
||||||
|
|
||||||
# Return counts
|
# Return counts
|
||||||
return new_count, del_count
|
return new_count, del_count
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue