diff options
author | Magnus Hagander | 2015-02-08 15:54:12 +0000 |
---|---|---|
committer | Magnus Hagander | 2015-02-08 15:54:12 +0000 |
commit | ec2f174e5c9d27630a4e7f507761edbdecffbe9c (patch) | |
tree | 05c767f7cd0d8d8896653191008446c93b44f8e2 /pgcommitfest/commitfest/ajax.py | |
parent | 2bf6b909fd42f09ada9667264b9a0300f15503d9 (diff) |
Collect and show attachment filenames
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 f489d12..92c4575 100644 --- a/pgcommitfest/commitfest/ajax.py +++ b/pgcommitfest/commitfest/ajax.py @@ -75,7 +75,8 @@ def parse_and_add_attachments(threadinfo, mailthread): defaults={ 'date': t['date'], 'author': t['from'], - 'attachmentid': t['atts'][0], + 'attachmentid': t['atts'][0]['id'], + 'filename': t['atts'][0]['name'], }) # In theory we should remove objects if they don't have an # attachment, but how could that ever happen? Ignore for now. |