This commit is contained in:
levina 2021-11-14 07:22:37 +07:00 committed by GitHub
parent af807b5bec
commit 525bc41c7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))