diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2020-07-23 19:45:18 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2020-07-23 19:45:29 -0700 |
commit | 3e5799e0bb3f0eb7b9f5d690692757cfbf400412 (patch) | |
tree | e78de45cbca526dfacf7ae9ada31152a790fa0a4 /python/fatcat_tools/transforms | |
parent | a05ecb7959bc57b8f1c3607e1c941e8e25d9a87b (diff) | |
download | fatcat-3e5799e0bb3f0eb7b9f5d690692757cfbf400412.tar.gz fatcat-3e5799e0bb3f0eb7b9f5d690692757cfbf400412.zip |
simplify in_kbart check statement
Thanks @martin
Diffstat (limited to 'python/fatcat_tools/transforms')
-rw-r--r-- | python/fatcat_tools/transforms/elasticsearch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_tools/transforms/elasticsearch.py b/python/fatcat_tools/transforms/elasticsearch.py index 0b04db86..2eb18fbf 100644 --- a/python/fatcat_tools/transforms/elasticsearch.py +++ b/python/fatcat_tools/transforms/elasticsearch.py @@ -138,7 +138,7 @@ def release_to_elasticsearch(entity, force_bool=True): # coverage from *last* year to also be included in the # Keeper if not in_kbart and release_year == this_year: - in_kbart = in_kbart or check_kbart(this_year - 1, c_extra['kbart'].get(archive)) + in_kbart = check_kbart(this_year - 1, c_extra['kbart'].get(archive)) if c_extra.get('ia'): if c_extra['ia'].get('sim') and release_year: |