aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-04-02 16:02:44 -0700
committerBryan Newbold <bnewbold@archive.org>2020-04-02 16:02:44 -0700
commitd87b5392ede1e191448cf053ca27ad7cac5c2297 (patch)
tree154ea67f587c41336beaf7572339d5536b755c6e
parentd2d2b78067af3e025d44f4f399bc78d7ed15d570 (diff)
downloadfatcat-covid19-d87b5392ede1e191448cf053ca27ad7cac5c2297.tar.gz
fatcat-covid19-d87b5392ede1e191448cf053ca27ad7cac5c2297.zip
flask: can't flash() without cookies
-rw-r--r--fatcat_covid19/search.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fatcat_covid19/search.py b/fatcat_covid19/search.py
index e939502..2534374 100644
--- a/fatcat_covid19/search.py
+++ b/fatcat_covid19/search.py
@@ -24,7 +24,7 @@ def do_search(index, request, limit=30, offset=0, deep_page_limit=2000):
if resp.status_code == 400:
print("elasticsearch 400: " + str(resp.content))
- flash("Search query failed to parse; you might need to use quotes.<p><code>{}</code>".format(resp.content))
+ #flash("Search query failed to parse; you might need to use quotes.<p><code>{}</code>".format(resp.content))
abort(resp.status_code)
elif resp.status_code != 200:
print("elasticsearch non-200 status code: " + str(resp.status_code))