aboutsummaryrefslogtreecommitdiffstats
path: root/bin/parse_cord19_csv.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/parse_cord19_csv.py')
-rwxr-xr-xbin/parse_cord19_csv.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/parse_cord19_csv.py b/bin/parse_cord19_csv.py
index 55cd81b..dbc6cc5 100755
--- a/bin/parse_cord19_csv.py
+++ b/bin/parse_cord19_csv.py
@@ -17,4 +17,5 @@ with open(CSVFILE, newline='') as csvfile:
row = dict(row)
row['mag_id'] = row.pop('Microsoft Academic Paper ID')
row['who_covidence_id'] = row.pop('WHO #Covidence').replace('#', '')
- print(json.dumps(row, sort_keys=True))
+ obj = dict(cord19_paper=row)
+ print(json.dumps(obj, sort_keys=True))