diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-23 16:15:18 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-23 16:15:18 -0800 |
commit | a75717bc876c0888064fbc9a3bf69d1954a7c0cc (patch) | |
tree | 27ebab2dd12c748dfa2029d8d9dbe0d94352b9c1 /python/fatcat_tools | |
parent | 2c3316f163706c86ef0316f34799bbad80a893be (diff) | |
download | fatcat-a75717bc876c0888064fbc9a3bf69d1954a7c0cc.tar.gz fatcat-a75717bc876c0888064fbc9a3bf69d1954a7c0cc.zip |
try to fix any_abstract
Diffstat (limited to 'python/fatcat_tools')
-rw-r--r-- | python/fatcat_tools/transforms.py | 2 |
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 []) |