Fix logic in loops
This commit is contained in:
parent
10e7a776fc
commit
a2d6977cd6
@ -381,8 +381,8 @@ class Collection(BaseCollection):
|
|||||||
sorted(items, key=get_uid), get_uid)
|
sorted(items, key=get_uid), get_uid)
|
||||||
|
|
||||||
for uid, items in items_by_uid:
|
for uid, items in items_by_uid:
|
||||||
for item in items:
|
|
||||||
new_collection = vobject.iCalendar()
|
new_collection = vobject.iCalendar()
|
||||||
|
for item in items:
|
||||||
new_collection.add(item)
|
new_collection.add(item)
|
||||||
file_name = hex(getrandbits(32))[2:]
|
file_name = hex(getrandbits(32))[2:]
|
||||||
self.upload(file_name, new_collection)
|
self.upload(file_name, new_collection)
|
||||||
|
Loading…
Reference in New Issue
Block a user