diff --git a/files/routes/front.py b/files/routes/front.py index 0450a8730..90e68ef0a 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -74,7 +74,8 @@ def notifications(v): notifications = notifications[:25] for x in notifications: - if not x[0].read: x[1].unread = True + if x[0].read: break + x[1].unread = True x[0].read = True g.db.add(x[0])