diff --git a/files/routes/front.py b/files/routes/front.py index bb4ad40e23..e47a8157a0 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -74,7 +74,8 @@ def notifications(v): x.read = True g.db.add(x) i += 1 - + g.db.commit() + if not posts: listing = [] for c in comments: