Przeglądaj źródła

Fix BaseCollection.move

The update method doesn't exist.
Unrud 9 lat temu
rodzic
commit
def34b1454
1 zmienionych plików z 1 dodań i 4 usunięć
  1. 1 4
      radicale/storage.py

+ 1 - 4
radicale/storage.py

@@ -254,10 +254,7 @@ 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)
+        to_collection.upload(to_href, item.item)
         item.collection.delete(item.href)
 
     @property