commit 6fd4c1b5687a8e9fb38ca7dcc0bce3a01bed89cf
parent 45308571eec1a143db55027fc05a852bf5e76054
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Tue, 20 Feb 2018 18:12:18 +0100
lowercase queries (thanks, p4bl0)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drime.py b/drime.py
@@ -32,7 +32,7 @@ def about():
@app.route('/query')
def q():
d = {
- 'q': request.args.get('query'),
+ 'q': request.args.get('query').strip().lower(),
'nsyl': request.args.get('nsyl', ""),
'gender': request.args.get('gender', "on"),
'classical': request.args.get('classical', "on"),