From: Magnus Hagander Date: Tue, 15 Jul 2014 19:07:34 +0000 (+0200) Subject: Let's try again, seems lighttpd behaves differently from manage.py X-Git-Url: http://git.postgresql.org/gitweb/irc:/static/gitweb.js?a=commitdiff_plain;h=956e18a4e41f765572816fe1ea89620abfd8c868;p=pgcommitfest2.git Let's try again, seems lighttpd behaves differently from manage.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}