[CalendarServer-changes] [11938] CalendarServer/trunk/calendarserver/push/notifier.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Mar 12 11:17:45 PDT 2014
Revision: 11938
http://trac.calendarserver.org//changeset/11938
Author: sagen at apple.com
Date: 2013-11-13 09:51:47 -0800 (Wed, 13 Nov 2013)
Log Message:
-----------
No need to select pushID, which was there for debugging
Modified Paths:
--------------
CalendarServer/trunk/calendarserver/push/notifier.py
Modified: CalendarServer/trunk/calendarserver/push/notifier.py
===================================================================
--- CalendarServer/trunk/calendarserver/push/notifier.py 2013-11-13 17:51:23 UTC (rev 11937)
+++ CalendarServer/trunk/calendarserver/push/notifier.py 2013-11-13 17:51:47 UTC (rev 11938)
@@ -48,8 +48,7 @@
# Find all work items with the same push ID and find the highest
# priority. Delete matching work items.
- results = (yield Select([self.table.WORK_ID, self.table.PRIORITY,
- self.table.PUSH_ID],
+ results = (yield Select([self.table.WORK_ID, self.table.PRIORITY],
From=self.table, Where=self.table.PUSH_ID == self.pushID).on(
self.transaction))
@@ -59,7 +58,7 @@
# highest priority one and use that value
if results:
workIDs = []
- for workID, priority, pushID in results:
+ for workID, priority in results:
if priority > maxPriority:
maxPriority = priority
workIDs.append(workID)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/bc63f1fc/attachment.html>
More information about the calendarserver-changes
mailing list