diff --git a/driver/database/data_sql.py b/driver/database/data_sql.py index abac19c..737cad5 100644 --- a/driver/database/data_sql.py +++ b/driver/database/data_sql.py @@ -25,7 +25,7 @@ def del_chat(chat_id): SESSION.commit() -def chatlists(): +def chatdata(): global CHAT_ID try: CHAT_ID = {int(x.chat_id) for x in SESSION.query(Chats).all()}