aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/refcat/tasks.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/refcat/tasks.py b/python/refcat/tasks.py
index d42bfa5..7cf346b 100644
--- a/python/refcat/tasks.py
+++ b/python/refcat/tasks.py
@@ -1571,7 +1571,9 @@ class UnmatchedRefsReparse(Refcat):
citations = grobid_tei_xml.parse_citations_xml(grobid_resp.text)
if len(citations) == 0:
continue
- output.write(json.dumps(citations[0].to_dict()) + "\n")
+ json.dump(citations[0].to_dict(), output)
+ output.write("\n")
+
def output(self):
return luigi.LocalTarget(path=self.path(ext="json.zst"), format=Zstd)