Commit 4154ebc7 authored by Guillaume's avatar Guillaume
Browse files

Bugfixes

parent 1dc37ce1
......@@ -244,7 +244,7 @@ def main():
# Concatenate CSV files into one compressed CSV catalog.
print(f'Concatenating CSV catalogs...')
csv_header = ','.join(header) + '/n'
csv_header = ','.join(header) + '\n'
with gzip.open(f'{CATALOG_OUTPUT_PROD}/{args.project}{CSV_EXTENSION}{COMPRESS_EXTENSION}', 'wb') as f_out:
f_out.write(csv_header.encode('ascii'))
for f in glob(f'{CATALOG_OUTPUT}/{args.project}/*{CSV_EXTENSION}'):
......
......@@ -36,7 +36,7 @@ def make_json(catdir, project, header):
print(f'Writing JSON catalog...')
# Get catalog name.
catpath = os.path.join(catdir, f'{project}{JSON_EXTENSION}')
catpath = os.path.join(catdir, f'{project}{JSON_EXTENSION}{COMPRESS_EXTENSION}')
# Load Jinja2 template for ESM catalogs.
with open('ESMCollectionTemplate.json') as file:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment