From 3f8ead3d07bed78c750b9f6a8b7e95ebffeff089 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 18 Feb 2020 19:02:48 -0800 Subject: unpaywall2ingestrequest transform script --- python/sandcrawler/pdftrio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/sandcrawler/pdftrio.py') diff --git a/python/sandcrawler/pdftrio.py b/python/sandcrawler/pdftrio.py index 7a2e53c..12be9eb 100644 --- a/python/sandcrawler/pdftrio.py +++ b/python/sandcrawler/pdftrio.py @@ -180,7 +180,7 @@ class PdfTrioBlobWorker(SandcrawlerWorker): result = dict() result['file_meta'] = gen_file_metadata(blob) result['key'] = result['file_meta']['sha1hex'] - result['pdf_trio'] = self.pdftrio_client.classify_pdf(blob, mode=mode) + result['pdf_trio'] = self.pdftrio_client.classify_pdf(blob, mode=self.mode) result['timing'] = dict( pdftrio_sec=result['pdf_trio'].pop('_total_sec', None), total_sec=time.time() - start_process, -- cgit v1.2.3