From 807233c4625dede9399b73b58b014bc5ce3abcda Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 12 Nov 2021 14:54:44 -0800 Subject: ingest_file: more efficient GROBID metadata copy --- python/sandcrawler/ingest_file.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python') diff --git a/python/sandcrawler/ingest_file.py b/python/sandcrawler/ingest_file.py index b6a5115..d0c3e0e 100644 --- a/python/sandcrawler/ingest_file.py +++ b/python/sandcrawler/ingest_file.py @@ -378,9 +378,9 @@ class IngestFileWorker(SandcrawlerWorker): if result["status"] == "success": metadata = self.grobid_client.metadata(result) if metadata: - result["metadata"] = self.grobid_client.metadata(result) - result["fatcat_release"] = result["metadata"].pop("fatcat_release", None) - result["grobid_version"] = result["metadata"].pop("grobid_version", None) + result["metadata"] = metadata + result["fatcat_release"] = metadata.pop("fatcat_release", None) + result["grobid_version"] = metadata.pop("grobid_version", None) result.pop("tei_xml", None) result.pop("file_meta", None) result.pop("key", None) -- cgit v1.2.3