aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-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 [])