summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-23 16:15:18 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-23 16:15:18 -0800
commita75717bc876c0888064fbc9a3bf69d1954a7c0cc (patch)
tree27ebab2dd12c748dfa2029d8d9dbe0d94352b9c1
parent2c3316f163706c86ef0316f34799bbad80a893be (diff)
downloadfatcat-a75717bc876c0888064fbc9a3bf69d1954a7c0cc.tar.gz
fatcat-a75717bc876c0888064fbc9a3bf69d1954a7c0cc.zip
try to fix any_abstract
-rw-r--r--python/fatcat_tools/transforms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_tools/transforms.py b/python/fatcat_tools/transforms.py
index f183431a..b1fd7e68 100644
--- a/python/fatcat_tools/transforms.py
+++ b/python/fatcat_tools/transforms.py
@@ -97,7 +97,7 @@ def release_to_elasticsearch(release):
t['in_shadow'] = extra.get('in_shadow')
if extra.get('grobid') and extra['grobid'].get('is_longtail_oa'):
t['container_is_longtail_oa'] = True
- t['any_abstract'] = bool(release.abstracts)
+ t['any_abstract'] = len(release.abstracts) > 0
t['is_kept'] = container_is_kept or extra.get('is_kept', False)
t['ref_count'] = len(release.refs or [])