From 193a940fa0f62ceb4f36fd325a7b7eed2391d43e Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Sun, 18 Aug 2013 18:16:12 +0200 Subject: Track and show the last time an email was sent for a patch This tracks all the emails that are sent on a patch. Note that this currently only picks up emalis when the attach thread function is used, since there is no cronjob that fetches this data yet. When that job is added, it should also update this field. --- pgcommitfest/commitfest/ajax.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pgcommitfest/commitfest/ajax.py') diff --git a/pgcommitfest/commitfest/ajax.py b/pgcommitfest/commitfest/ajax.py index 469d630..97d00a4 100644 --- a/pgcommitfest/commitfest/ajax.py +++ b/pgcommitfest/commitfest/ajax.py @@ -106,6 +106,7 @@ def doAttachThread(cf, patch, msgid, user): m.save() parse_and_add_attachments(r, m) PatchHistory(patch=patch, by=user, what='Attached mail thread %s' % r[0]['msgid']).save() + patch.update_lastmail() patch.set_modified() patch.save() @@ -119,6 +120,7 @@ def detachThread(request): thread.delete() PatchHistory(patch=patch, by=request.user, what='Detached mail thread %s' % request.POST['msg']).save() + patch.update_lastmail() patch.set_modified() patch.save() -- cgit v1.2.3