Skip to content

Commit

Permalink
Merge pull request #1 from j5155/patch-1
Browse files Browse the repository at this point in the history
Fix changes from guineawheek
  • Loading branch information
skruglov2023 authored Jan 18, 2024
2 parents fe02dfb + eec7627 commit fde21e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dozer/cogs/ftc.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

def get_none_strip(s, key):
"""Ensures that a get always returns a stripped string."""
return (str(s.get(key, "")) or "").strip()
return str(s.get(key, "") or "").strip()

class FTCEventsClient:
"""
Expand Down Expand Up @@ -271,7 +271,7 @@ async def team(self, ctx: DozerContext, team_num: int):
value=', '.join((team_data['city'], team_data['stateProv'], team_data['country'])) or "Unknown")
e.add_field(name='Org/Sponsors', value=team_data.get('nameFull', "").strip() or "_ _")
e.add_field(name='Website', value=website or 'n/a')
e.add_field(name='Team Info Page', value=f'https://ftcscout.org/teams/{team_num}')
e.add_field(name='FTCScout Page', value=f'https://ftcscout.org/teams/{team_num}')

if sres.status != 404:
team_stats = await sres.json(content_type = None)
Expand Down

0 comments on commit fde21e1

Please sign in to comment.