im retarded x2

master
Aevann 2024-08-11 02:48:26 +03:00
parent 795fba8d70
commit 6b6afc7b9e
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ def notifications_chats(v):
chats = g.db.query(Chat, ChatMembership.notification, ChatMembership.muted, ChatMembership.mentions) \
.join(ChatMembership, and_(Chat.id == ChatMembership.chat_id, ChatMembership.user_id == v.id)) \
.join(sq, Chat.id == sq.c.chat_id) \
.order_by(ChatMembership.mentions.desc(), ChatMembership.notification.desc(), sq.created_utc.desc()).all()
.order_by(ChatMembership.mentions.desc(), ChatMembership.notification.desc(), sq.c.created_utc.desc()).all()
return render_template("notifications.html", v=v, notifications=chats)