...
 
Commits (2)
......@@ -31,7 +31,7 @@ before_script:
job:
stage: build
only:
- master
- triggers
tags:
- docker
script:
......
......@@ -253,7 +253,7 @@ def main():
dataset_json.setdefault('series', []).append(series_json)
with open(os.path.join(dataset_dir, '{}.tsv'.format(series_code)), 'w', encoding='utf-8') as tsv_file:
tsv_file.write('{}\t{}\n'.format('YEAR', entry['UNIT']))
tsv_file.write('PERIOD\tVALUE\n')
for period, value in islice(entry.items(), 5, None):
tsv_file.write('{}\t{}\n'.format(period, value))
write_json_file(os.path.join(dataset_dir, 'dataset.json'), dataset_json)
......