commit 32a1db30897d08b8e8351355a208db1f8a6192dc
parent baf6a29ad1bd81bf5c10a9e7cad75d4c2cd7f11a
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Sat, 26 Oct 2013 13:18:23 +0200
reasonable defaults for missing args
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drime.py b/drime.py
@@ -33,9 +33,9 @@ def about():
def q():
d = {
'q': request.args.get('query'),
- 'nsyl': request.args.get('nsyl'),
- 'gender': request.args.get('gender'),
- 'classical': request.args.get('classical'),
+ 'nsyl': request.args.get('nsyl', ""),
+ 'gender': request.args.get('gender', "on"),
+ 'classical': request.args.get('classical', "on"),
'page': request.args.get('page'),
}
if not d['page']: