diff options
Diffstat (limited to 'python/fatcat_web')
-rw-r--r-- | python/fatcat_web/routes.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 |