diff --git a/driver/database/data_sql.py b/driver/database/data_sql.py index fae5704..abac19c 100644 --- a/driver/database/data_sql.py +++ b/driver/database/data_sql.py @@ -12,14 +12,11 @@ class Chats(BASE): self.chat_id = chat_id self.chat_name = chat_name - Chats.__table__.create(checkfirst=True) - CHATS_LOCK = threading.RLock() CHATS_DATA = set() - def del_chat(chat_id): with CHATS_LOCK: chat = SESSION.query(Chats).get(str(chat_id))