From 53c587b69e4a6385e75e3c958a6c17b6c14d64b6 Mon Sep 17 00:00:00 2001 From: Maciej Ziarkowski Date: Tue, 21 Jan 2020 12:25:58 +0000 Subject: [PATCH] Fix README.txt path inside bulk extract --- 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 7e63127a..07113562 100644 --- a/maintenance/extract_data/extract_data.py +++ b/maintenance/extract_data/extract_data.py @@ -68,7 +68,7 @@ def make_data_extract(current_time, connection, zip_file_path): try: with zipfile.ZipFile(zip_file_path, mode='w') as newzip: - newzip.write(source_dir_path / 'README.txt') + newzip.write(source_dir_path / 'README.txt', arcname='README.txt') newzip.write('/tmp/building_attributes.csv', arcname='building_attributes.csv') newzip.write('/tmp/building_uprns.csv', arcname='building_uprns.csv') newzip.write('/tmp/edit_history.csv', arcname='edit_history.csv')