Skip to content

Commit

Permalink
resolved f-strings as asked by devyn
Browse files Browse the repository at this point in the history
  • Loading branch information
skruglov2023 authored Jan 2, 2024
1 parent ed2f6ff commit fe02dfb
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions dozer/cogs/ftc.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,15 +274,15 @@ async def team(self, ctx: DozerContext, team_num: int):
e.add_field(name='Team Info Page', value=f'https://ftcscout.org/teams/{team_num}')

if sres.status != 404:
team_stats = await sres.json(content_type=None)
e.add_field(name='Total OPR', value=str(round(team_stats['tot']['value'], 1)) + ", rank #" + str(
team_stats['tot']['rank']))
e.add_field(name='Auto OPR', value=str(round(team_stats['auto']['value'], 1)) + ", rank #" + str(
team_stats['auto']['rank']))
e.add_field(name='Teleop OPR',
value=str(round(team_stats['dc']['value'], 1)) + ", rank #" + str(team_stats['dc']['rank']))
e.add_field(name='Endgame OPR',
value=str(round(team_stats['eg']['value'], 1)) + ", rank #" + str(team_stats['eg']['rank']))
team_stats = await sres.json(content_type = None)
e.add_field(name = 'Total OPR',
value = f"{team_stats['tot']['value']:.0f}, rank #{team_stats['tot']['rank']:.0f}")
e.add_field(name = 'Auto OPR',
value = f"{team_stats['auto']['value']:.0f}, rank #{team_stats['auto']['rank']:.0f}")
e.add_field(name = 'Teleop OPR',
value = f"{team_stats['dc']['value']:.0f}, rank #{team_stats['dc']['rank']:.0f}")
e.add_field(name = 'Endgame OPR',
value = f"{team_stats['eg']['value']:.0f}, rank #{team_stats['eg']['rank']:.0f}")

await ctx.send(embed=e)

Expand Down

0 comments on commit fe02dfb

Please sign in to comment.