[CalendarServer-changes] [302] CalendarServer/trunk/twistedcaldav/index.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Oct 25 13:23:53 PDT 2006


Revision: 302
          http://trac.macosforge.org/projects/calendarserver/changeset/302
Author:   cdaboo at apple.com
Date:     2006-10-25 13:23:51 -0700 (Wed, 25 Oct 2006)

Log Message:
-----------
Fix for ticket #76. Make sure that timespan index lookups return only one matching resources when
multiple instances in the recurrence match.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/index.py

Modified: CalendarServer/trunk/twistedcaldav/index.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/index.py	2006-10-25 19:50:37 UTC (rev 301)
+++ CalendarServer/trunk/twistedcaldav/index.py	2006-10-25 20:23:51 UTC (rev 302)
@@ -233,7 +233,7 @@
         else:
             qualifiers = None
         if qualifiers is not None:
-            rowiter = self._db_execute("select RESOURCE.NAME, RESOURCE.UID, RESOURCE.TYPE" + qualifiers[0], *qualifiers[1])
+            rowiter = self._db_execute("select DISTINCT RESOURCE.NAME, RESOURCE.UID, RESOURCE.TYPE" + qualifiers[0], *qualifiers[1])
         else:
             rowiter = self._db_execute("select NAME, UID, TYPE from RESOURCE")
             

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20061025/501efa68/attachment.html


More information about the calendarserver-changes mailing list