Просмотр исходного кода

Fix collection creation with PUT request

Guillaume Ayoub 9 лет назад
Родитель
Сommit
26e1c9ba89
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      radicale/__init__.py

+ 2 - 1
radicale/__init__.py

@@ -579,7 +579,8 @@ class Application:
                 if item:
                 if item:
                     # Delete old collection
                     # Delete old collection
                     item.delete()
                     item.delete()
-                new_item = self.Collection.create_collection(path, items, tag)
+                new_item = self.Collection.create_collection(
+                    path, items, {"tag": tag})
             else:
             else:
                 if tag:
                 if tag:
                     parent_item.set_meta({"tag": tag})
                     parent_item.set_meta({"tag": tag})