From 00e4ec6865782e4453d4dcec24ee205bf7c13ecf Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 3 Sep 2019 15:13:37 -0700 Subject: fix previous fix (need tests) --- python/fatcat_tools/transforms/elasticsearch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/fatcat_tools/transforms/elasticsearch.py b/python/fatcat_tools/transforms/elasticsearch.py index be4b5616..56c3da8f 100644 --- a/python/fatcat_tools/transforms/elasticsearch.py +++ b/python/fatcat_tools/transforms/elasticsearch.py @@ -285,10 +285,10 @@ def container_to_elasticsearch(entity, force_bool=True): if extra['road'].get('as_of'): in_road = True if extra.get('ezb'): - if c_extra['ezb'].get('color') == 'green': + if extra['ezb'].get('color') == 'green': is_oa = True if extra.get('szczepanski'): - if c_extra['szczepanski'].get('as_of'): + if extra['szczepanski'].get('as_of'): is_oa = True if extra.get('default_license'): if extra['default_license'].startswith('CC-'): -- cgit v1.2.3