From 6d5882001a96ede03b4dc66fb53a80258da5565f Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 20 Dec 2014 22:32:18 +0100 Subject: [PATCH] Notificaton.list not returning anything fix #4348 --- couchpotato/core/notifications/core/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/couchpotato/core/notifications/core/main.py b/couchpotato/core/notifications/core/main.py index fa8e9a7e..4055c413 100644 --- a/couchpotato/core/notifications/core/main.py +++ b/couchpotato/core/notifications/core/main.py @@ -110,11 +110,11 @@ class CoreNotifier(Notification): if limit_offset: splt = splitString(limit_offset) - limit = splt[0] - offset = 0 if len(splt) is 1 else splt[1] - results = db.get_many('notification', limit = limit, offset = offset, with_doc = True) + limit = tryInt(splt[0]) + offset = tryInt(0 if len(splt) is 1 else splt[1]) + results = db.all('notification', limit = limit, offset = offset, with_doc = True) else: - results = db.get_many('notification', limit = 200, with_doc = True) + results = db.all('notification', limit = 200, with_doc = True) notifications = [] for n in results: