Sfoglia il codice sorgente

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

TheHamkerCat 3 anni fa
parent
commit
59f5b1612f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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()