forked from MarseyWorld/MarseyWorld
print-debugging
parent
f43d94e02c
commit
e2c534f4b5
|
@ -231,7 +231,9 @@ def speak(data, v):
|
||||||
send_notification(user.id, f"@{v.username} has removed you as a mod of their chat [{chat.name}](/chat/{chat.id})")
|
send_notification(user.id, f"@{v.username} has removed you as a mod of their chat [{chat.name}](/chat/{chat.id})")
|
||||||
|
|
||||||
if chat.id != 1:
|
if chat.id != 1:
|
||||||
|
print(get_chatroom(), flush=True)
|
||||||
alrdy_here = set(online[get_chatroom()].keys())
|
alrdy_here = set(online[get_chatroom()].keys())
|
||||||
|
print(alrdy_here, flush=True)
|
||||||
memberships = g.db.query(ChatMembership).options(load_only(ChatMembership.user_id)).filter(
|
memberships = g.db.query(ChatMembership).options(load_only(ChatMembership.user_id)).filter(
|
||||||
ChatMembership.chat_id == chat_id,
|
ChatMembership.chat_id == chat_id,
|
||||||
ChatMembership.user_id.notin_(alrdy_here),
|
ChatMembership.user_id.notin_(alrdy_here),
|
||||||
|
|
Loading…
Reference in New Issue