mirror of
https://github.com/IgorL123/mafia_api.git
synced 2026-09-23 23:20:19 +00:00
action
This commit is contained in:
committed by
IgorL123
parent
a5d790ef58
commit
74c563a96a
@@ -3,7 +3,7 @@ import psycopg2
|
||||
|
||||
db_params = {
|
||||
'host': '51.250.68.42',
|
||||
'database': 'test',
|
||||
'database': 'postgres',
|
||||
'user': 'curator',
|
||||
'password': '4oumQk'
|
||||
}
|
||||
@@ -15,7 +15,9 @@ try:
|
||||
|
||||
# Ваш код выполнения запросов
|
||||
|
||||
cursor.execute("SELECT * FROM chats")
|
||||
cursor.execute(f"Select role from chats join userschats uc on uc.chatid = "
|
||||
f"chats.chatid join users on users.userid = uc.userid where truechatid = '{7656}' and isAlive = true")
|
||||
|
||||
rows = cursor.fetchall()
|
||||
|
||||
for row in rows:
|
||||
|
||||
Reference in New Issue
Block a user