summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-04-04 15:25:09 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-04-04 15:25:09 -0700
commit5f4ceedbf87176fc0f8628dc102d9beee6c03c29 (patch)
treec8bbf9591f300c007962ede28c46b6a600a40ced
parent312312543b9d99af5aeb1df48205e6e0d630eb7d (diff)
downloadfatcat-5f4ceedbf87176fc0f8628dc102d9beee6c03c29.tar.gz
fatcat-5f4ceedbf87176fc0f8628dc102d9beee6c03c29.zip
fix extid lookup bugs
-rw-r--r--python/fatcat_web/routes.py3
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