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