aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/fatcat_tools/transforms/elasticsearch.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/fatcat_tools/transforms/elasticsearch.py b/python/fatcat_tools/transforms/elasticsearch.py
index 56c3da8f..303d56a9 100644
--- a/python/fatcat_tools/transforms/elasticsearch.py
+++ b/python/fatcat_tools/transforms/elasticsearch.py
@@ -105,6 +105,8 @@ def release_to_elasticsearch(entity, force_bool=True):
if container:
t['publisher'] = container.publisher
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_issnl'] = container.issnl
t['container_type'] = container.container_type