فهرست منبع

Assume that the collection is an addressbook when "carddav" is in URL

Guillaume Ayoub 12 سال پیش
والد
کامیت
3e3f07a6de
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      radicale/ical.py

+ 1 - 1
radicale/ical.py

@@ -396,7 +396,7 @@ class Collection(object):
                 try:
                     tag = open(self.path).readlines()[0][6:].rstrip()
                 except IOError:
-                    if self.path.endswith(".vcf"):
+                    if self.path.endswith(".vcf") or "carddav" in self.path:
                         props["tag"] = "VADDRESSBOOK"
                     else:
                         props["tag"] = "VCALENDAR"