Await fix.
All checks were successful
dR export statistics build / Build (push) Successful in 12m24s
dR export statistics scheduled / Export (push) Successful in 14m56s

This commit is contained in:
retoor 2024-12-03 05:57:48 +01:00
parent 6343513980
commit 34f05e5992

View File

@ -32,7 +32,7 @@ async def get_recent_rants(start_from=1, page_size=10):
def get_rants():
return dr.get_rants("recent", page_size, start_from)["rants"]
rants = asyncio.wait_for(loop.run_in_executor(None,get_rants), 15)
rants = await asyncio.wait_for(loop.run_in_executor(None,get_rants), 15)
page += 1
for rant in rants: