Fix logic in loops

This commit is contained in:
Florian Mounier 2016-07-07 17:53:35 +02:00
parent 10e7a776fc
commit a2d6977cd6

View File

@ -381,8 +381,8 @@ class Collection(BaseCollection):
sorted(items, key=get_uid), get_uid)
for uid, items in items_by_uid:
new_collection = vobject.iCalendar()
for item in items:
new_collection = vobject.iCalendar()
new_collection.add(item)
file_name = hex(getrandbits(32))[2:]
self.upload(file_name, new_collection)