Merge pull request #4 from calcorum/fix-scorecard-link
Update scorecard url to point to new site /games endpoint
This commit is contained in:
commit
b03e7ecb60
@ -1360,8 +1360,8 @@ class Players(commands.Cog):
|
||||
return
|
||||
|
||||
# Post scorecard to news channel
|
||||
card_url = f'<{SBA_BASE_URL}/scorecards/?season={current["season"]}&week={week_num}&game={game_num}' \
|
||||
f'&away_abbrev={away_team["abbrev"]}&home_abbrev={home_team["abbrev"]}>'
|
||||
card_url = f'<{SBA_BASE_URL}/games/{current["season"]}/{week_num}/{game_num}' \
|
||||
f'/{away_team["abbrev"]}/{home_team["abbrev"]}>'
|
||||
extras = ''
|
||||
if int(final_inning) > 9:
|
||||
extras = f' F/{final_inning}'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user