Postseason bugfixes
This commit is contained in:
parent
d64caede88
commit
dc772220cb
@ -1610,7 +1610,7 @@ class Transactions(commands.Cog):
|
||||
team = await get_team_by_owner(current['season'], ctx.author.id)
|
||||
# team = await get_team_by_abbrev('VA', current['season'])
|
||||
s_query = await db_get('games', params=[
|
||||
('season', current['season']), ('team1_id', team['id']), ('week', current['week'] + 1)
|
||||
('season', current['season']), ('team1_id', team['id']), ('week', current['week'])
|
||||
])
|
||||
if s_query['count'] == 0 and current['week'] != 18:
|
||||
await ctx.send('It looks like your season is over so transactions are locked.')
|
||||
|
||||
@ -947,8 +947,10 @@ async def get_player_embed(player, current, ctx=None, season=None):
|
||||
if batting_string and not batter_priority:
|
||||
embed.add_field(name='Batting Stats', value=batting_string, inline=False)
|
||||
else:
|
||||
b_query = await db_get('plays/batting', params=[('player_id', player['id']), ('min_wpa', 0)])
|
||||
p_query = await db_get('plays/pitching', params=[('player_id', player['id'])])
|
||||
b_query = await db_get('plays/batting', params=[
|
||||
('player_id', player['id']), ('min_wpa', 0), ('s_type', 'regular')
|
||||
])
|
||||
p_query = await db_get('plays/pitching', params=[('player_id', player['id']), ('s_type', 'regular')])
|
||||
batter_priority = True
|
||||
b, p, batting_string, pitching_string = None, None, None, None
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user