Fix README.txt path inside bulk extract

This commit is contained in:
Maciej Ziarkowski 2020-01-21 12:25:58 +00:00
parent b711f8e557
commit 53c587b69e

View File

@ -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')