summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/transforms/elasticsearch.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-12-17 19:22:26 -0800
committerBryan Newbold <bnewbold@robocracy.org>2020-12-17 19:22:26 -0800
commit28aa515a964421abba8cefd2f43ef2bf75fe47c5 (patch)
treed17ec4daaf235df5b2bf049a90f36d184da55105 /python/fatcat_tools/transforms/elasticsearch.py
parent443243e8cccba3e779b7c56d0cdb6dcd992a3100 (diff)
downloadfatcat-28aa515a964421abba8cefd2f43ef2bf75fe47c5.tar.gz
fatcat-28aa515a964421abba8cefd2f43ef2bf75fe47c5.zip
bug fix: is_preserved should always be bool
Diffstat (limited to 'python/fatcat_tools/transforms/elasticsearch.py')
-rw-r--r--python/fatcat_tools/transforms/elasticsearch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat_tools/transforms/elasticsearch.py b/python/fatcat_tools/transforms/elasticsearch.py
index ad4b7722..db860a09 100644
--- a/python/fatcat_tools/transforms/elasticsearch.py
+++ b/python/fatcat_tools/transforms/elasticsearch.py
@@ -217,8 +217,8 @@ def release_to_elasticsearch(entity: ReleaseEntity, force_bool: bool = True) ->
t[k] = bool(t[k])
t['in_ia'] = bool(t['in_ia'])
- t['is_preserved'] = (
- bool(t['is_preserved'])
+ t['is_preserved'] = bool(
+ t['is_preserved']
or t['in_ia']
or t['in_kbart']
or t['in_jstor']