diff --git a/update_mongo.py b/update_mongo.py index e76913c..c8091e2 100755 --- a/update_mongo.py +++ b/update_mongo.py @@ -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