Notificaton.list not returning anything

fix #4348
This commit is contained in:
Ruud
2014-12-20 22:32:18 +01:00
parent 4a6b45c65c
commit 6d5882001a
+4 -4
View File
@@ -110,11 +110,11 @@ class CoreNotifier(Notification):
if limit_offset: if limit_offset:
splt = splitString(limit_offset) splt = splitString(limit_offset)
limit = splt[0] limit = tryInt(splt[0])
offset = 0 if len(splt) is 1 else splt[1] offset = tryInt(0 if len(splt) is 1 else splt[1])
results = db.get_many('notification', limit = limit, offset = offset, with_doc = True) results = db.all('notification', limit = limit, offset = offset, with_doc = True)
else: else:
results = db.get_many('notification', limit = 200, with_doc = True) results = db.all('notification', limit = 200, with_doc = True)
notifications = [] notifications = []
for n in results: for n in results: