summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/routes.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-06-05 16:15:04 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-06-05 16:15:04 -0700
commit75a5a436a43c1a82925854f9421ab408c5618caa (patch)
tree62907026c17f76560657fdb537cfe189e884b14f /python/fatcat_web/routes.py
parent95b9e7d906248bae4e43096887e6d3bb57dca8de (diff)
downloadfatcat-75a5a436a43c1a82925854f9421ab408c5618caa.tar.gz
fatcat-75a5a436a43c1a82925854f9421ab408c5618caa.zip
fixes to lookup views
Diffstat (limited to 'python/fatcat_web/routes.py')
-rw-r--r--python/fatcat_web/routes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py
index 7ddd8cca..c94a7298 100644
--- a/python/fatcat_web/routes.py
+++ b/python/fatcat_web/routes.py
@@ -46,7 +46,7 @@ def container_lookup():
if extid is None:
return render_template('container_lookup.html')
try:
- resp = api.lookup_container(**{extid: request.args.get(extid)})
+ resp = api.lookup_container(**{extid: extid_value})
except ValueError:
return make_response(
render_template('container_lookup.html',
@@ -178,7 +178,7 @@ def file_lookup():
if extid is None:
return render_template('file_lookup.html')
try:
- resp = api.lookup_file(**{extid: request.args.get(extid)})
+ resp = api.lookup_file(**{extid: extid_value})
except ValueError:
return make_response(
render_template('file_lookup.html',