Преглед на файлове

fix: AttributeError: 'FileStorage' object has no attribute 'lock'

TheHamkerCat преди 3 години
родител
ревизия
59f5b1612f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      wbb/utils/functions.py

+ 1 - 1
wbb/utils/functions.py

@@ -316,7 +316,7 @@ def extract_text_and_keyb(ikb, text: str, row_width: int = 2):
 
 
 async def get_user_id_and_usernames(client) -> dict:
-    with client.storage.lock, client.storage.conn:
+    with client.storage.conn:
         users = client.storage.conn.execute(
             'SELECT * FROM peers WHERE type in ("user", "bot") AND username NOT null'
         ).fetchall()