Atomic replacement of whole collection by PUT
This commit is contained in:
parent
0675328a02
commit
68286faa63
@ -574,9 +574,6 @@ class Application:
|
|||||||
tag = tags.get(content_type)
|
tag = tags.get(content_type)
|
||||||
|
|
||||||
if write_whole_collection:
|
if write_whole_collection:
|
||||||
if item:
|
|
||||||
# Delete old collection
|
|
||||||
item.delete()
|
|
||||||
new_item = self.Collection.create_collection(
|
new_item = self.Collection.create_collection(
|
||||||
path, items, {"tag": tag})
|
path, items, {"tag": tag})
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user