diff --git a/files/routes/front.py b/files/routes/front.py index c4b0e1df4d..b2c1ba2eb7 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -44,7 +44,7 @@ def notifications(v): g.db.add(x) comments.append(c) - session.bulk_update_mappings(User, notifs) + g.db.bulk_update_mappings(User, notifs) next_exists = (len(comments) > 25) listing = comments[:25] else: