summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/transforms
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-23 11:43:50 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-23 11:43:50 -0700
commit475856250e598216366ed1982e523e883b652139 (patch)
tree3f6d48e5f433b4051340d195217d8b822e1f3b5b /python/fatcat_tools/transforms
parentf5b955746f2fb62220c3b3dfc134d4d35193f776 (diff)
downloadfatcat-475856250e598216366ed1982e523e883b652139.tar.gz
fatcat-475856250e598216366ed1982e523e883b652139.zip
add 'superceded' release extra flag to elastic schema
Diffstat (limited to 'python/fatcat_tools/transforms')
-rw-r--r--python/fatcat_tools/transforms/elasticsearch.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/fatcat_tools/transforms/elasticsearch.py b/python/fatcat_tools/transforms/elasticsearch.py
index f287fe10..8589d364 100644
--- a/python/fatcat_tools/transforms/elasticsearch.py
+++ b/python/fatcat_tools/transforms/elasticsearch.py
@@ -292,6 +292,7 @@ def container_to_elasticsearch(entity, force_bool=True):
if extra.get('ia'):
if extra['ia'].get('sim'):
any_ia_sim = True
+ t['is_superceded'] = bool(extra.get('superceded'))
t['in_doaj'] = bool(in_doaj)
t['in_road'] = bool(in_road)