Pārlūkot izejas kodu

This is very important

Florian Mounier 9 gadi atpakaļ
vecāks
revīzija
c95437367f
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      radicale/storage.py

+ 2 - 2
radicale/storage.py

@@ -321,7 +321,7 @@ class BaseCollection:
         """Upload a new item."""
         raise NotImplementedError
 
-    def upload_all(self, collections):
+    def upload_all(self, vobject_items):
         """Upload a new set of items.
 
         This takes a mapping of href and vobject items and
@@ -331,7 +331,7 @@ class BaseCollection:
         """
         return [
             self.upload(href, vobject_item)
-            for href, vobject_item in collections.items()
+            for href, vobject_item in vobject_items.items()
         ]
 
     def update(self, href, vobject_item):