From 26e1c9ba89f37cac277f95de5ed438405f30fbaf Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Fri, 5 Aug 2016 02:24:52 +0200 Subject: [PATCH] Fix collection creation with PUT request --- radicale/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radicale/__init__.py b/radicale/__init__.py index c457fb8..b99f52e 100644 --- a/radicale/__init__.py +++ b/radicale/__init__.py @@ -579,7 +579,8 @@ class Application: if item: # Delete old collection item.delete() - new_item = self.Collection.create_collection(path, items, tag) + new_item = self.Collection.create_collection( + path, items, {"tag": tag}) else: if tag: parent_item.set_meta({"tag": tag})