Explorar el Código

Remove duplicates in REPORT request

git-svn-id: http://svn.32rwr.info/radicale/trunk@7 74e4794c-479d-4a33-9dda-c6c359d70f12
(no author) hace 16 años
padre
commit
34d1d30998
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      radicale/xmlutils.py

+ 1 - 1
radicale/xmlutils.py

@@ -152,7 +152,7 @@ def report(xmlRequest, calendar, url):
 
     if root.tag == _tag("C", "calendar-multiget"):
         # Read rfc4791-7.9 for info
-        hreferences = [hrefElement.text for hrefElement in root.findall(_tag("D", "href"))]
+        hreferences = set([hrefElement.text for hrefElement in root.findall(_tag("D", "href"))])
     else:
         hreferences = [url]