|
|
@@ -37,7 +37,7 @@ antiservicedb = db.antiservice
|
|
|
pmpermitdb = db.pmpermit
|
|
|
welcomedb = db.welcome_text
|
|
|
nsfwdb = db.nsfw
|
|
|
-capcha_cachedb = db.captcha_cache
|
|
|
+captcha_cachedb = db.captcha_cache
|
|
|
|
|
|
""" Notes functions """
|
|
|
|
|
|
@@ -587,7 +587,7 @@ async def nsfw_off(chat_id: int):
|
|
|
async def update_captcha_cache(captcha_dict):
|
|
|
pickle = obj_to_str(captcha_dict)
|
|
|
if not pickle:
|
|
|
- await capcha_cachedb.delete_one({"captcha": "cache"})
|
|
|
+ await captcha_cachedb.delete_one({"captcha": "cache"})
|
|
|
return
|
|
|
await captcha_cachedb.update_one(
|
|
|
{"captcha": "cache"},
|
|
|
@@ -601,7 +601,7 @@ async def update_captcha_cache(captcha_dict):
|
|
|
|
|
|
|
|
|
async def get_captcha_cache():
|
|
|
- cache = await capcha_cachedb.find_one({"captcha": "cache"})
|
|
|
+ cache = await captcha_cachedb.find_one({"captcha": "cache"})
|
|
|
if not cache:
|
|
|
return []
|
|
|
return str_to_obj(cache['pickled'])
|