im retarded

master
Aevann 2024-08-11 02:45:49 +03:00
parent 071cacba8b
commit 795fba8d70
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(), ChatMembership.created_utc.desc()).all()
.order_by(ChatMembership.mentions.desc(), ChatMembership.notification.desc(), sq.created_utc.desc()).all()
return render_template("notifications.html", v=v, notifications=chats)