aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-02-26 11:22:30 -0800
committerBryan Newbold <bnewbold@robocracy.org>2020-02-26 11:22:30 -0800
commit0450f22006c9b991cdc4695458fc3b3e3e97bfbb (patch)
treee99dead7a6bd67d1434181ee3513931a26c0de86 /python/fatcat_tools
parented38bfde4e1eaddd6d710802b6f372c7b0aab26b (diff)
downloadfatcat-0450f22006c9b991cdc4695458fc3b3e3e97bfbb.tar.gz
fatcat-0450f22006c9b991cdc4695458fc3b3e3e97bfbb.zip
ES release: last minor tweaks
Diffstat (limited to 'python/fatcat_tools')
-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 e00d7830..cbafca7e 100644
--- a/python/fatcat_tools/transforms/elasticsearch.py
+++ b/python/fatcat_tools/transforms/elasticsearch.py
@@ -156,8 +156,8 @@ def release_to_elasticsearch(entity, force_bool=True):
if c_extra['szczepanski'].get('as_of'):
is_oa = True
if c_extra.get('country'):
- t['country'] = c_extra['country']
- t['country_upper'] = c_extra['country'].upper()
+ t['country_code'] = c_extra['country']
+ t['country_code_upper'] = c_extra['country'].upper()
# fall back to release-level container metadata if container not linked or
# missing context