diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-04-03 18:13:00 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-04-03 18:13:00 -0700 |
commit | 6c0e50dc8fdf6f09ff34b3a78ffe2241769b8d4f (patch) | |
tree | c7b0bf1a220ef909ec5a8955a5dd84f5af09515a /fatcat_covid19/enrich.py | |
parent | 3599ebce9941fabe06640d1f664cb4949eddd74d (diff) | |
download | fatcat-covid19-6c0e50dc8fdf6f09ff34b3a78ffe2241769b8d4f.tar.gz fatcat-covid19-6c0e50dc8fdf6f09ff34b3a78ffe2241769b8d4f.zip |
fixes from prod
Diffstat (limited to 'fatcat_covid19/enrich.py')
-rw-r--r-- | fatcat_covid19/enrich.py | 3 |
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) + |