From 89e561c99134261fd58f49b2983b4f14ed1e1a39 Mon Sep 17 00:00:00 2001 From: Ruud Date: Thu, 6 Mar 2014 22:39:11 +0100 Subject: [PATCH] Use time to index notifications --- couchpotato/core/notifications/core/index.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/couchpotato/core/notifications/core/index.py b/couchpotato/core/notifications/core/index.py index 3e92a463..6d65b905 100644 --- a/couchpotato/core/notifications/core/index.py +++ b/couchpotato/core/notifications/core/index.py @@ -17,10 +17,7 @@ import time""" def make_key_value(self, data): if data.get('_t') == 'notification': - added = data.get('added', time.time()) - data['added'] = added - - return added, None + return data.get('time'), None class NotificationUnreadIndex(TreeBasedIndex): @@ -38,7 +35,4 @@ import time""" def make_key_value(self, data): if data.get('_t') == 'notification' and not data.get('read'): - added = data.get('added', time.time()) - data['added'] = added - - return added, None + return data.get('time'), None