From 956e18a4e41f765572816fe1ea89620abfd8c868 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Tue, 15 Jul 2014 21:07:34 +0200 Subject: Let's try again, seems lighttpd behaves differently from manage.py --- pgcommitfest/commitfest/ajax.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pgcommitfest/commitfest/ajax.py') diff --git a/pgcommitfest/commitfest/ajax.py b/pgcommitfest/commitfest/ajax.py index d32ce91..06f6691 100644 --- a/pgcommitfest/commitfest/ajax.py +++ b/pgcommitfest/commitfest/ajax.py @@ -47,7 +47,10 @@ def _archivesAPI(suburl, params=None): def getThreads(request): search = request.GET.has_key('s') and request.GET['s'] or None - attachonly = request.GET.has_key('a') and 1 or 0 + if request.GET.has_key('a') and request.GET['a'] == "1": + attachonly = 1 + else: + attachonly = 0 # Make a JSON api call to the archives server params = {'n': 100, 'a': attachonly} -- cgit v1.2.3