mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +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):
|
||||
s = record.serialize()
|
||||
return self.map.add(s)
|
||||
id = self.map.add(s)
|
||||
record.id = id
|
||||
return id
|
||||
|
||||
def remove(self, id):
|
||||
self.map.remove(id)
|
||||
|
Loading…
Reference in New Issue
Block a user