From 525bc41c7d4226a067ad967460bdeca1ffb7ab83 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Sun, 14 Nov 2021 07:22:37 +0700 Subject: [PATCH] none --- driver/database/data_sql.py | 3 --- 1 file changed, 3 deletions(-) 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))