EWS build fix after the Qt EWS removal.
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Oct 2013 22:21:50 +0000 (22:21 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Oct 2013 22:21:50 +0000 (22:21 +0000)
* QueueStatusServer/model/attachment.py:
(Attachment._calculate_queue_positions):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@156803 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/QueueStatusServer/model/attachment.py

index 4b5966b..ed0030c 100644 (file)
@@ -1,3 +1,10 @@
+2013-10-02  Ryosuke Niwa  <rniwa@webkit.org>
+
+        EWS build fix after the Qt EWS removal.
+
+        * QueueStatusServer/model/attachment.py:
+        (Attachment._calculate_queue_positions):
+
 2013-10-02  Anders Carlsson  <andersca@apple.com>
 
         Remove Qt code from Tools/
index 83b441e..4960709 100644 (file)
@@ -99,7 +99,7 @@ class Attachment(object):
 
     def _calculate_queue_positions(self):
         all_work_items = WorkItems.all().fetch(limit=len(Queue.all()))
-        return dict([(items.queue.name(), items.display_position_for_attachment(self.id)) for items in all_work_items])
+        return dict([(items.queue.name(), items.display_position_for_attachment(self.id)) for items in all_work_items if items.queue])
 
     # FIXME: This is controller/view code and does not belong in a model.
     def _fetch_summary(self):