Răsfoiți Sursa

Remove duplicates in REPORT request

git-svn-id: http://svn.32rwr.info/radicale/trunk@7 74e4794c-479d-4a33-9dda-c6c359d70f12
(no author) 16 ani în urmă
părinte
comite
34d1d30998
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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]