Fix collection creation with PUT request

This commit is contained in:
Guillaume Ayoub 2016-08-05 02:24:52 +02:00
parent 8ac3ce1a89
commit 26e1c9ba89

View File

@ -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})