diff options
author | Magnus Hagander | 2014-07-15 18:56:34 +0000 |
---|---|---|
committer | Magnus Hagander | 2014-07-15 18:56:34 +0000 |
commit | 9d0ac596472e9044042a0ece3e9451c54b85c4a2 (patch) | |
tree | 6f8b54af7918997308c8f5e6e704a665d91870fa /pgcommitfest/commitfest/ajax.py | |
parent | b06376aff1fe8fec6f8af84f3f39f0e872b0c135 (diff) |
Don't require attachments to attach a mail thread to an existing patch
We still require attachments to create a new patch, but it should be
possible to attach a pure discussion thread to an existing patch.
Diffstat (limited to 'pgcommitfest/commitfest/ajax.py')
-rw-r--r-- | pgcommitfest/commitfest/ajax.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pgcommitfest/commitfest/ajax.py b/pgcommitfest/commitfest/ajax.py index 08d86a2..d32ce91 100644 --- a/pgcommitfest/commitfest/ajax.py +++ b/pgcommitfest/commitfest/ajax.py @@ -47,9 +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 # Make a JSON api call to the archives server - params = {'n': 100, 'a': 1} + params = {'n': 100, 'a': attachonly} if search: params['s'] = search |