Update previous updates file naming to include current timestamp for versioning
This commit is contained in:
+1
-1
@@ -183,7 +183,7 @@ def main() -> int:
|
||||
try:
|
||||
os.makedirs(tempdir, exist_ok=True)
|
||||
out_file = 'tvmaze_updates.json'
|
||||
prev_file = 'post_tvmaze_updates.json'
|
||||
prev_file = f'post_tvmaze_updates.json.{currentTimestamp}'
|
||||
previous_updates_file = f"{tempdir}{prev_file}"
|
||||
# TVMAZE_URLS is a dict of urls; use the updatesurl if available
|
||||
updates_url = TVMAZE_URLS.get('updatesurl') if isinstance(TVMAZE_URLS, dict) else None
|
||||
|
||||
Reference in New Issue
Block a user