TheHamkerCat %!s(int64=5) %!d(string=hai) anos
pai
achega
cb2537af80
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      wbb/utils/dbfunctions.py

+ 1 - 1
wbb/utils/dbfunctions.py

@@ -586,8 +586,8 @@ async def nsfw_off(chat_id: int):
 
 async def update_captcha_cache(captcha_dict):
     pickle = obj_to_str(captcha_dict)
+    await captcha_cachedb.delete_one({"captcha": "cache"})
     if not pickle:
-        await captcha_cachedb.delete_one({"captcha": "cache"})
         return
     await captcha_cachedb.update_one(
         {"captcha": "cache"},