From 61bd2d65fd1c4fbda2c28d36c5388a610b4d1d14 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 30 Mar 2021 12:31:50 -0700 Subject: release ES: add discipline field --- python/fatcat_tools/transforms/elasticsearch.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python/fatcat_tools') diff --git a/python/fatcat_tools/transforms/elasticsearch.py b/python/fatcat_tools/transforms/elasticsearch.py index 12b8ea2b..5058989c 100644 --- a/python/fatcat_tools/transforms/elasticsearch.py +++ b/python/fatcat_tools/transforms/elasticsearch.py @@ -296,6 +296,8 @@ def _rte_container_helper(container: ContainerEntity, release_year: Optional[int t['country_code_upper'] = c_extra['country'].upper() if c_extra.get('publisher_type'): t['publisher_type'] = c_extra['publisher_type'] + if c_extra.get('discipline'): + t['discipline'] = c_extra['discipline'] return t def _rte_content_helper(release: ReleaseEntity) -> dict: -- cgit v1.2.3