[CalendarServer-changes] [13522] CalendarServer/trunk/txdav/caldav/datastore/sql.py

source_changes at macosforge.org source_changes at macosforge.org
Wed May 21 08:07:02 PDT 2014


Revision: 13522
          http://trac.calendarserver.org//changeset/13522
Author:   cdaboo at apple.com
Date:     2014-05-21 08:07:02 -0700 (Wed, 21 May 2014)
Log Message:
-----------
Whitespace.

Modified Paths:
--------------
    CalendarServer/trunk/txdav/caldav/datastore/sql.py

Modified: CalendarServer/trunk/txdav/caldav/datastore/sql.py
===================================================================
--- CalendarServer/trunk/txdav/caldav/datastore/sql.py	2014-05-20 23:47:30 UTC (rev 13521)
+++ CalendarServer/trunk/txdav/caldav/datastore/sql.py	2014-05-21 15:07:02 UTC (rev 13522)
@@ -2037,13 +2037,13 @@
 
     @inlineCallbacks
     def deleteOldGROUP_ATTENDEE(self, component, instances, inserting, txn):
-            
+
         # If this event is old, break possible tie to group update
         if hasattr(self, "_groupCUAToAttendeeMemberPropMap"):
-            
+
             if (component.masterComponent() is None or not component.isRecurring()):
-                cutoffDate_datatime  = (
-                    datetime.datetime.utcnow() + 
+                cutoffDate_datatime = (
+                    datetime.datetime.utcnow() +
                     datetime.timedelta(seconds=config.GroupAttendees.UpdateOldEventLimitSeconds)
                 )
                 tr = schema.TIME_RANGE
@@ -2056,18 +2056,18 @@
                     ),
                 ).on(txn)
                 isOld = rows[0][0] == 0
-               
+
             else:
                 if instances:
                     cutoffDate_DateTime = (
-                        DateTime.getNowUTC() + 
+                        DateTime.getNowUTC() +
                         Duration(seconds=config.GroupAttendees.UpdateOldEventLimitSeconds)
                     )
                     maxInstanceKey = sorted(instance for instance in instances)[-1]
                     isOld = cutoffDate_DateTime > instances[maxInstanceKey].end
                 else:
                     isOld = True
-                
+
             if isOld:
                 if inserting:
                     # don't create GROUP_ATTENDEE rows in updateGROUP_ATTENDEE()
@@ -3022,7 +3022,7 @@
 
         if instanceIndexingRequired and doInstanceIndexing:
             yield self._addInstances(component, instances, truncateLowerLimit, isInboxItem, txn)
-            
+
         yield self.deleteOldGROUP_ATTENDEE(component, instances, inserting, txn)
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140521/ccacd48a/attachment.html>


More information about the calendarserver-changes mailing list