From ec2f174e5c9d27630a4e7f507761edbdecffbe9c Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Sun, 8 Feb 2015 16:54:12 +0100 Subject: Collect and show attachment filenames --- pgcommitfest/commitfest/ajax.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pgcommitfest/commitfest/ajax.py') 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. -- cgit v1.2.3