Image info, endpoint encryption
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from bot.db import db, DBTables
|
||||
from bot.db import db, DBTables, decrypt
|
||||
import aiohttp
|
||||
import asyncio
|
||||
import time
|
||||
@@ -18,7 +18,7 @@ async def job_exists(endpoint):
|
||||
|
||||
|
||||
async def wait_for_status(ignore_exceptions: bool = False):
|
||||
endpoint = db[DBTables.config].get('endpoint')
|
||||
endpoint = decrypt(db[DBTables.config].get('endpoint'))
|
||||
try:
|
||||
while await job_exists(endpoint):
|
||||
while db[DBTables.cooldown].get('_last_time_status_checked', 0) + 5 > time.time():
|
||||
|
||||
Reference in New Issue
Block a user