Explorar el Código

Fix collection creation with PUT request

Guillaume Ayoub hace 9 años
padre
commit
26e1c9ba89
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      radicale/__init__.py

+ 2 - 1
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})