From a49b04f1aac6ded2748bb343fddadb77d43bec1e Mon Sep 17 00:00:00 2001 From: Maciej Ziarkowski Date: Fri, 30 Aug 2019 14:11:25 +0100 Subject: [PATCH] Add time to data extract file name --- maintenance/extract_data/extract_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/extract_data/extract_data.py b/maintenance/extract_data/extract_data.py index 93697f87..1b0b034a 100644 --- a/maintenance/extract_data/extract_data.py +++ b/maintenance/extract_data/extract_data.py @@ -54,7 +54,7 @@ def db_to_csv(connection, query): def get_extract_zip_file_path(current_time): base_dir = Path(os.environ['EXTRACTS_DIRECTORY']) - file_name = f"data-extract-{current_time:%Y-%m-%d}.zip" + file_name = f"data-extract-{current_time:%Y-%m-%d-%H_%M_%S}.zip" return base_dir / file_name