diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-24 18:16:34 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-24 18:16:36 -0800 |
commit | 0584499e7887d8c1ff216b27652d28c8377c3a17 (patch) | |
tree | 917108979761378742f18523b1a6eb4851b18b90 /python/fatcat_tools/transforms/elasticsearch.py | |
parent | e72d61e60c43911b6d77c4842951441235561dcf (diff) | |
download | fatcat-0584499e7887d8c1ff216b27652d28c8377c3a17.tar.gz fatcat-0584499e7887d8c1ff216b27652d28c8377c3a17.zip |
ES release transform: handle redirected containers better
Despite the inline comment, we were not actually grabbing the
"redirected" ident correctly, meaning some counts would not be accurate.
Diffstat (limited to 'python/fatcat_tools/transforms/elasticsearch.py')
-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 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])) |