1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-22 09:24:21 +01:00

fix notification adding error

The test on whether the user notification queue existed or not was just wrong.
This commit is contained in:
kakwa 2015-11-08 20:15:48 +01:00
parent af01f9bae3
commit e981451431
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
Dev
***
* [fix ] notifications missing in case of multiple notification waiting to be displayed
Version 0.2.2
*************

View File

@ -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)