Skip to content

Commit

Permalink
fixed calling an async func in blocking method
Browse files Browse the repository at this point in the history
  • Loading branch information
MujyKun committed Aug 16, 2021
1 parent b5076fe commit 5ab31ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IreneUtility/util/u_groupmembers.py
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ def check_reset_limits(self):
if time.time() - self.ex.cache.last_idol_reset_time > 86400: # 1 day in seconds
self.ex.cache.last_idol_reset_time = time.time() # reset the time
# reset user idol calls.
await self.ex.run_blocking_code(self.reset_user_idol_calls)
asyncio.create_task(self.ex.run_blocking_code(self.reset_user_idol_calls))

def reset_user_idol_calls(self):
"""Resets all user idol calls to zero."""
Expand Down

0 comments on commit 5ab31ab

Please sign in to comment.