mirror of
https://github.com/Kozea/Radicale.git
synced 2025-07-02 16:58:30 +00:00
Let GET requests create address books too!
This commit is contained in:
parent
22e4e3764c
commit
f37c3a0b27
2 changed files with 5 additions and 1 deletions
|
@ -392,7 +392,10 @@ class Collection(object):
|
|||
try:
|
||||
props["tag"] = open(self.path).readlines()[0][6:].rstrip()
|
||||
except IOError:
|
||||
props["tag"] = "VCALENDAR"
|
||||
if self.path.endswith(".vcf"):
|
||||
props["tag"] = "VADDRESSBOOK"
|
||||
else:
|
||||
props["tag"] = "VCALENDAR"
|
||||
return props["tag"]
|
||||
|
||||
@property
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue