From d87b5392ede1e191448cf053ca27ad7cac5c2297 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 2 Apr 2020 16:02:44 -0700 Subject: flask: can't flash() without cookies --- fatcat_covid19/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.

{}".format(resp.content)) + #flash("Search query failed to parse; you might need to use quotes.

{}".format(resp.content)) abort(resp.status_code) elif resp.status_code != 200: print("elasticsearch non-200 status code: " + str(resp.status_code)) -- cgit v1.2.3