[releng] [schedule] Try harder to append the list of assignees



commit 977e8397cb27d5ccb6a964508ef53e06eedd2b47
Author: Vincent Untz <vuntz gnome org>
Date:   Mon Jul 27 17:28:27 2009 +0200

    [schedule] Try harder to append the list of assignees
    
    The previous code assumed there was only one event, which was clearly
    wrong.

 tools/schedule/automail.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/tools/schedule/automail.py b/tools/schedule/automail.py
index 1a59757..e39142a 100755
--- a/tools/schedule/automail.py
+++ b/tools/schedule/automail.py
@@ -33,8 +33,9 @@ def mail_events(events):
         # Show tasks only, even if we have notes
         subject = "%s (and more)" % ', '.join([task.summary() for task in tasks])
 
-    if mail == 'release-team gnome org' and event.assignee:
-        subject += ' -- %s' % event.assignee
+    assignees = set(event.assignee for event in events if event.assignee)
+    if mail == 'release-team gnome org' and len(assignees) != 0:
+        subject += ' -- %s' % ', '.join(assignees)
 
     contents = StringIO.StringIO()
     contents.write("Hello all,\n\n")



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]