Merge pull request #515 from Unrud/patch-3

Fix BaseCollection.move
This commit is contained in:
Guillaume Ayoub 2016-09-15 12:55:21 +02:00 committed by GitHub
commit 4f44c46be7

View File

@ -254,9 +254,6 @@ class BaseCollection:
"""
if item.collection.path == to_collection.path and item.href == to_href:
return
if to_collection.has(to_href):
to_collection.update(to_href, item.item)
else:
to_collection.upload(to_href, item.item)
item.collection.delete(item.href)