From: Magnus Hagander Date: Sat, 24 Aug 2013 13:22:34 +0000 (+0200) Subject: Only show threads with attachments on them X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=7670766b4218a531421a9984fd13d831c9ed3ad2;p=pgcommitfest2.git Only show threads with attachments on them --- diff --git a/pgcommitfest/commitfest/ajax.py b/pgcommitfest/commitfest/ajax.py index 97d00a4..75fbc76 100644 --- a/pgcommitfest/commitfest/ajax.py +++ b/pgcommitfest/commitfest/ajax.py @@ -49,7 +49,7 @@ def getThreads(request): search = request.GET.has_key('s') and request.GET['s'] or None # Make a JSON api call to the archives server - r = _archivesAPI('/list/pgsql-hackers/latest.json', {'n': 100}) + r = _archivesAPI('/list/pgsql-hackers/latest.json', {'n': 100, 'a': 1}) if search: return sorted([x for x in r if x['subj'].lower().find(search)>=0 or x['from'].lower().find(search)>=0], key=lambda x: x['date'], reverse=True) else: