aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-10-28 14:57:27 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-10-28 14:57:27 +0200
commitd65fdd7c6bb7be78d0eca4ba23771f3fca3282d3 (patch)
treea4373af6e95820663821933f0e39df13bc329b05 /python
parentf175ef84d070b8c6ab231836e469d7d5d1b81c28 (diff)
downloadrefcat-d65fdd7c6bb7be78d0eca4ba23771f3fca3282d3.tar.gz
refcat-d65fdd7c6bb7be78d0eca4ba23771f3fca3282d3.zip
tasks: address type issue
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)