diff --git a/files/routes/front.py b/files/routes/front.py index 76e23079c..e83349e18 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -42,7 +42,7 @@ def notifications(v): notifs.append({'id': x.id, 'read': True}) comments.append(c) - g.db.bulk_update_mappings(User, notifs) + g.db.bulk_update_mappings(Notification, notifs) next_exists = (len(comments) > 25) listing = comments[:25] else: