Merge pull request #337 from Unrud/patch-1
Assign new items to correct key
This commit is contained in:
commit
53c3113b44
@ -355,7 +355,7 @@ class Collection(object):
|
|||||||
text, (Timezone, Event, Todo, Journal, Card), name)
|
text, (Timezone, Event, Todo, Journal, Card), name)
|
||||||
for new_item in new_items.values():
|
for new_item in new_items.values():
|
||||||
if new_item.name not in self.items:
|
if new_item.name not in self.items:
|
||||||
self.items[new_item] = new_item
|
self.items[new_item.name] = new_item
|
||||||
self.write()
|
self.write()
|
||||||
|
|
||||||
def remove(self, name):
|
def remove(self, name):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user