From a75717bc876c0888064fbc9a3bf69d1954a7c0cc Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 23 Jan 2019 16:15:18 -0800 Subject: try to fix any_abstract --- python/fatcat_tools/transforms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 []) -- cgit v1.2.3