From 006633556ae5d3abf39a9c451c8b5fbfe6de2a7b Mon Sep 17 00:00:00 2001 From: CYBERDEViLNL Date: Mon, 16 Apr 2018 22:53:45 +0200 Subject: [PATCH] well that was stupid.. unread notification count didn't got updated correctly wich resulted in KeyError --- diaspy/notifications.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/diaspy/notifications.py b/diaspy/notifications.py index b644729..d3ef645 100644 --- a/diaspy/notifications.py +++ b/diaspy/notifications.py @@ -49,8 +49,8 @@ class Notifications(): for n in new_notifications: if n.id not in ids: if n.unread: - data[n.type].unread_count +=1 - data[n.type].unread_count_by_type +=1 + data['unread_count'] +=1 + data['unread_count_by_type'][n.type] +=1 notifications.append(n) ids.append(n.id) self._notifications = notifications -- 2.25.1