aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-11-02 17:59:22 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-11-02 17:59:22 -0700
commitf19414e707e68eb1d0fe669963a476c4656a259c (patch)
tree73baaf3cd68c30397eb77443cfa68d16603ec2eb
parent6fa2d38be243531747241a3ae602069d507368d9 (diff)
downloadfatcat-f19414e707e68eb1d0fe669963a476c4656a259c.tar.gz
fatcat-f19414e707e68eb1d0fe669963a476c4656a259c.zip
arabesque import 'hit' field is 1/0, not true/false
-rw-r--r--python/fatcat_tools/importers/arabesque.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat_tools/importers/arabesque.py b/python/fatcat_tools/importers/arabesque.py
index ccf35446..c8f7c77c 100644
--- a/python/fatcat_tools/importers/arabesque.py
+++ b/python/fatcat_tools/importers/arabesque.py
@@ -62,13 +62,13 @@ class ArabesqueMatchImporter(EntityImporter):
def want(self, row):
if self.require_grobid and not row['postproc_status'] == "200":
return False
- if (row['hit'] is True
+ if (bool(row['hit']) is True
and row['final_sha1']
and row['final_timestamp']
and row['final_timestamp'] != "-"
and len(row['final_timestamp']) == 14
and row['final_mimetype']
- and row['hit'] is True
+ and bool(row['hit']) is True
and row['identifier']):
return True
else: