From 5ba91951bb4ebc59cb59340e82cba2a7d763dc59 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 30 Jan 2020 13:22:45 -0800 Subject: fix release es transform missing 'issue' --- python/fatcat_tools/transforms/elasticsearch.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/fatcat_tools/transforms/elasticsearch.py b/python/fatcat_tools/transforms/elasticsearch.py index ded239d3..b5abe2ae 100644 --- a/python/fatcat_tools/transforms/elasticsearch.py +++ b/python/fatcat_tools/transforms/elasticsearch.py @@ -248,6 +248,7 @@ def release_to_elasticsearch(entity, force_bool=True): # special case as a demo for now. if release.container_id == "hl5g6d5msjcl7hlbyyvcsbhc2u" \ and release.release_year in (2011, 2013) \ + and release.issue \ and release.issue.isdigit() \ and t['first_page']: t['ia_microfilm_url'] = "https://archive.org/details/sim_bjog_{}-{:02d}/page/n{}".format( -- cgit v1.2.3