summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/transforms
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-11-29 14:31:26 -0800
committerBryan Newbold <bnewbold@robocracy.org>2021-11-29 14:31:26 -0800
commitec2809ef2ac51c992463839c1e3451927f5e1661 (patch)
treed95c1b17e3bd8fc93179551ee130004c73513c16 /python/fatcat_tools/transforms
parenteb60449cdc9614ec7eda79b8481d1d8487b9a5f6 (diff)
parent487923dc81d877207556f8a90a3ce048fe6bafb5 (diff)
downloadfatcat-ec2809ef2ac51c992463839c1e3451927f5e1661.tar.gz
fatcat-ec2809ef2ac51c992463839c1e3451927f5e1661.zip
Merge branch 'bnewbold-container-merger'
Diffstat (limited to 'python/fatcat_tools/transforms')
-rw-r--r--python/fatcat_tools/transforms/elasticsearch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_tools/transforms/elasticsearch.py b/python/fatcat_tools/transforms/elasticsearch.py
index c16053ec..a6d85f7e 100644
--- a/python/fatcat_tools/transforms/elasticsearch.py
+++ b/python/fatcat_tools/transforms/elasticsearch.py
@@ -284,7 +284,7 @@ def _rte_container_helper(container: ContainerEntity, release_year: Optional[int
t["container_name"] = container.name
# this is container.ident, not release.container_id, because there may
# be a redirect involved
- t["container_id"] = container.ident
+ t["container_id"] = container.redirect or container.ident
t["container_issnl"] = container.issnl
issns = [container.issnl, container.issne, container.issnp]
issns = list(set([i for i in issns if i]))