aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_covid19/enrich.py
diff options
context:
space:
mode:
Diffstat (limited to 'fatcat_covid19/enrich.py')
-rw-r--r--fatcat_covid19/enrich.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/fatcat_covid19/enrich.py b/fatcat_covid19/enrich.py
index 458c83d..e7d6da2 100644
--- a/fatcat_covid19/enrich.py
+++ b/fatcat_covid19/enrich.py
@@ -51,7 +51,7 @@ def enrich_fatcat_row(row, api_session):
if fatcat_release:
row['fatcat_release'] = fatcat_release
row['release_id'] = fatcat_release['ident']
- print(json.dumps(row, sort_keys=True))
+ return row
def enrich_fatcat_file(json_input, json_output):
@@ -65,3 +65,4 @@ def enrich_fatcat_file(json_input, json_output):
result = enrich_fatcat_row(l, api_session)
if result:
print(json.dumps(result, sort_keys=True), file=json_output)
+