From e9814514319d938cb5e75d496d3676b855dcfc82 Mon Sep 17 00:00:00 2001 From: kakwa Date: Sun, 8 Nov 2015 20:15:48 +0100 Subject: [PATCH] fix notification adding error The test on whether the user notification queue existed or not was just wrong. --- ChangeLog.rst | 2 ++ ldapcherry/__init__.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog.rst b/ChangeLog.rst index 296e720..c3f0c92 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -1,6 +1,8 @@ Dev *** +* [fix ] notifications missing in case of multiple notification waiting to be displayed + Version 0.2.2 ************* diff --git a/ldapcherry/__init__.py b/ldapcherry/__init__.py index 7497eeb..5241006 100644 --- a/ldapcherry/__init__.py +++ b/ldapcherry/__init__.py @@ -431,7 +431,7 @@ class LdapCherry(object): """ sess = cherrypy.session username = sess.get(SESSION_KEY, None) - if username is not self.notifications: + if username not in self.notifications: self.notifications[username] = [] self.notifications[username].append(message)