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:
parent
af01f9bae3
commit
e981451431
@ -1,6 +1,8 @@
|
||||
Dev
|
||||
***
|
||||
|
||||
* [fix ] notifications missing in case of multiple notification waiting to be displayed
|
||||
|
||||
Version 0.2.2
|
||||
*************
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user