Une MAJ de sécurité est nécessaire sur notre version actuelle. Elle sera effectuée lundi 02/08 entre 12h30 et 13h. L'interruption de service devrait durer quelques minutes (probablement moins de 5 minutes).

Commit e3347a3c authored by HERBERT Ryan's avatar HERBERT Ryan
Browse files

controllers/notification.py removed useless 'type' parameter from get_active_notifications()

parent 48a2d1fe
......@@ -181,17 +181,6 @@ def get_active_notifications():
cached = cache.ram(key, lambda: None, time_expire=None)
if not cached:
# No cache found: query database
if (request.vars['type'] is not None):
query = db(
((db.notification.expiration >= today)
| (db.notification.expiration == None))
& (db.notification.message_type == request.vars['type'])
db.notification.ALL, db.user_preference.val,
else :
query = db(
(db.notification.expiration >= today) | (db.notification.expiration == None)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment