This commit is contained in:
Aevann1 2022-04-16 18:55:36 +02:00
parent e5e27d4492
commit 3bcca4923e
3 changed files with 3 additions and 2 deletions

View file

@ -108,7 +108,7 @@ def notifications(v):
g.db.commit()
sq = g.db.query(Comment.id, Notification.created_utc).join(Notification, Notification.comment_id == Comment.id).distinct(Comment.top_comment_id).filter(
sq = g.db.query(Comment.id, Notification.created_utc).join(Notification, Notification.comment_id == Comment.id).distinct(Comment.parent_comment_id).filter(
Notification.user_id == v.id,
Comment.is_banned == False,
Comment.deleted_utc == 0,