well that was stupid.. unread notification count didn't got updated correctly wich...
[diaspy.git] / diaspy / notifications.py
index b644729f3ce410af3bbc0f58a9e485e7a8b1ac5f..d3ef64529e1bdbd753f5bd2b06fd71965b321b07 100644 (file)
@@ -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