diff options
author | Magnus Hagander | 2014-07-15 19:07:34 +0000 |
---|---|---|
committer | Magnus Hagander | 2014-07-15 19:07:34 +0000 |
commit | 956e18a4e41f765572816fe1ea89620abfd8c868 (patch) | |
tree | b90b74b7685aaaa6088f418c25d8f87b07516884 /pgcommitfest/commitfest/ajax.py | |
parent | 9d0ac596472e9044042a0ece3e9451c54b85c4a2 (diff) |
Let's try again, seems lighttpd behaves differently from manage.py
Diffstat (limited to 'pgcommitfest/commitfest/ajax.py')
-rw-r--r-- | pgcommitfest/commitfest/ajax.py | 5 |
1 files changed, 4 insertions, 1 deletions
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} |