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)