From 5f4ceedbf87176fc0f8628dc102d9beee6c03c29 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 4 Apr 2019 15:25:09 -0700 Subject: fix extid lookup bugs --- python/fatcat_web/routes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py index 32a1837d..a2a433a8 100644 --- a/python/fatcat_web/routes.py +++ b/python/fatcat_web/routes.py @@ -87,6 +87,7 @@ def creator_history(ident): @app.route('/creator/lookup', methods=['GET']) def creator_lookup(): + extid = None for key in ('orcid', 'wikidata_qid'): if request.args.get(key): extid = key @@ -127,6 +128,7 @@ def file_history(ident): @app.route('/file/lookup', methods=['GET']) def file_lookup(): + extid = None for key in ('md5', 'sha1', 'sha256'): if request.args.get(key): extid = key @@ -233,6 +235,7 @@ def webcapture_view(ident): @app.route('/release/lookup', methods=['GET']) def release_lookup(): + extid = None for key in ('doi', 'wikidata_qid', 'pmid', 'pmcid', 'isbn13', 'core_id'): if request.args.get(key): extid = key -- cgit v1.2.3