mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +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