diff --git a/maintenance/extract_data/extract_data.py b/maintenance/extract_data/extract_data.py index e90f0397..7e63127a 100644 --- a/maintenance/extract_data/extract_data.py +++ b/maintenance/extract_data/extract_data.py @@ -64,9 +64,11 @@ def make_data_extract(current_time, connection, zip_file_path): zip_file_path.parent.mkdir(parents=True, exist_ok=True) + source_dir_path = Path(__file__).parent + try: with zipfile.ZipFile(zip_file_path, mode='w') as newzip: - newzip.write('README.txt') + newzip.write(source_dir_path / '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')