mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Augmented the add method for Note.
This commit is contained in:
parent
00b8f18620
commit
acf0a3f3e5
@ -284,7 +284,9 @@ class DB(object):
|
|||||||
|
|
||||||
def add(self, record):
|
def add(self, record):
|
||||||
s = record.serialize()
|
s = record.serialize()
|
||||||
return self.map.add(s)
|
id = self.map.add(s)
|
||||||
|
record.id = id
|
||||||
|
return id
|
||||||
|
|
||||||
def remove(self, id):
|
def remove(self, id):
|
||||||
self.map.remove(id)
|
self.map.remove(id)
|
||||||
|
Loading…
Reference in New Issue
Block a user