Updated website URL
This commit is contained in:
parent
24d70e0a6c
commit
605d81913f
@ -350,11 +350,9 @@ class Players(commands.Cog):
|
||||
# Get standings
|
||||
if team['abbrev'][-2:].lower() != 'il':
|
||||
try:
|
||||
s_query = await db_get('standings', params=[
|
||||
('season', current['season']), ('team_abbrev', team['abbrev'])
|
||||
])
|
||||
if s_query['count'] > 0:
|
||||
team_standings = s_query['standings'][0]
|
||||
s_query = await db_get(f'standings/team/{team["id"]}')
|
||||
if s_query is not None:
|
||||
team_standings = s_query
|
||||
overview_string = f'Record: {team_standings["wins"]}-{team_standings["losses"]} ' \
|
||||
f'({team_standings["run_diff"]} RD)\n' \
|
||||
f'Pythag Record: {team_standings["pythag_wins"]}-{team_standings["pythag_losses"]}\n'
|
||||
@ -458,7 +456,7 @@ class Players(commands.Cog):
|
||||
# Add roster link
|
||||
embed.add_field(
|
||||
name=f'{team["abbrev"]} Roster Page',
|
||||
value=f'https://sombaseball.ddns.net/teams?abbrev={team["abbrev"]}',
|
||||
value=f'https://sba.manticorum.com/teams/{current["season"]}/{team["abbrev"]}',
|
||||
inline=False
|
||||
)
|
||||
|
||||
|
||||
@ -27,7 +27,7 @@ SBA_ROSTER_KEY = '1bt7LLJe6h7axkhDVlxJ4f319l8QmFB0zQH-pjM0c8a8'
|
||||
SBA_STATS_KEY = '1fnqx2uxC7DT5aTnx4EkXh83crwrL0W6eJefoC1d4KH4'
|
||||
SBA_STANDINGS_KEY = '1cXZcPY08RvqV_GeLvZ7PY5-0CyM-AijpJxsaFisZjBc'
|
||||
SBA_ROSTER_URL = 'https://docs.google.com/spreadsheets/d/10fKx1vQ7tEjKx0OD5tnFADdjsUeFbqxMIshz2d5i-Is/edit'
|
||||
SBA_BASE_URL = 'https://sombaseball.ddns.net'
|
||||
SBA_BASE_URL = 'https://sba.manticorum.com'
|
||||
SBA_SEASON4_DRAFT_KEY = '1lztxahGRypykfWGKd2duDGFH0omclLqFLSt-vwqdSu8'
|
||||
SBA_SEASON5_DRAFT_KEY = '1euuKeWqQEUmE9OiF9wihO5LMERWP3Zwg_KsG2w-Kx54'
|
||||
SBA_SEASON6_DRAFT_KEY = '13_xWG1wQy7G4UJvohD8JIUBE-7yuWT9lVta1rkAlHQE'
|
||||
@ -810,6 +810,7 @@ async def get_player_embed(player, current, ctx=None, season=None):
|
||||
embed = get_team_embed(f'{player_name}', player["team"])
|
||||
embed.set_footer(text=f'SBa Season {current["season"]}', icon_url=LOGO)
|
||||
embed.add_field(name='Current Team', value=player['team']['sname'])
|
||||
# embed.description = f'Player ID {player["id"]}'
|
||||
|
||||
if player['headshot']:
|
||||
embed.set_thumbnail(url=player['headshot'])
|
||||
@ -871,6 +872,7 @@ async def get_player_embed(player, current, ctx=None, season=None):
|
||||
if num == 0:
|
||||
num = 16
|
||||
embed.add_field(name='Draft Pick', value=f'{pick["round"]}.{num} ({pick["owner"]["abbrev"]})')
|
||||
embed.add_field(name='Player ID', value=f'{player["id"]}')
|
||||
|
||||
if player['season'] < 8:
|
||||
b, p = None, None
|
||||
|
||||
Loading…
Reference in New Issue
Block a user