Data export, warnings' improvements, bug fixes #35
@ -23,7 +23,7 @@ async def cmd_warnings(app: Client, msg: Message):
|
|||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
user_db = col_users.find_one({"user": int(msg.command[1]), "active": True})
|
user_db = col_users.find_one({"user": int(msg.command[1])})
|
||||||
target_id = user_db["user"]
|
target_id = user_db["user"]
|
||||||
target_name = user_db["tg_name"]
|
target_name = user_db["tg_name"]
|
||||||
except:
|
except:
|
||||||
|
Reference in New Issue
Block a user