refactor: Remove async from rank changes check function
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Ching L 2025-03-07 11:35:23 +08:00
parent 2f534829e1
commit 8db5a25595
2 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ async def heartbeat():
async def check_rank_changes(channel):
logger.info("Checking for rank changes")
try:
data = await dota.check_rank_changes_for_discord()
data = dota.check_rank_changes_for_discord()
if data:
logger.info(f"Sending rank changes: {data}")
await channel.send(content=data['content'], embeds=[discord.Embed.from_dict(embed) for embed in data['embeds']])

View File

@ -386,7 +386,7 @@ async def serialize_match_for_discord(match_):
return data
async def check_rank_changes_for_discord():
def check_rank_changes_for_discord():
"""Check for rank changes among all active friends and format for Discord"""
rank_changes = []