Skip to content

Commit

Permalink
add temporary workaround to fix wrong team mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
razinc committed Nov 29, 2023
1 parent b61c061 commit a231222
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions custom/teams.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ async def get_fdr():

def builder():
fdr = asyncio.run(get_fdr())

# temporary workaround to fix wrong team mapping
try:
fdr["Sheffield Utd"] = fdr["Southampton"]
del fdr["Southampton"]
except KeyError:
pass

teams = {}
for team in asyncio.run(get_teams()):
teams[team["id"]] = {"short_name": team["short_name"],
Expand Down

0 comments on commit a231222

Please sign in to comment.