Update transactions.py
Allow week 18 moves
This commit is contained in:
parent
af14e3989f
commit
d64caede88
@ -1338,7 +1338,7 @@ class Transactions(commands.Cog):
|
|||||||
player_cog = self.bot.get_cog('Players')
|
player_cog = self.bot.get_cog('Players')
|
||||||
poke_role = get_role(ctx, 'Pokétwo')
|
poke_role = get_role(ctx, 'Pokétwo')
|
||||||
|
|
||||||
if s_query['count'] == 0 and not OFFSEASON_FLAG and current['week'] != 22:
|
if s_query['count'] == 0 and not OFFSEASON_FLAG and current['week'] != 18:
|
||||||
await ctx.send('It looks like your season is over so transactions are locked.')
|
await ctx.send('It looks like your season is over so transactions are locked.')
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -1612,7 +1612,7 @@ class Transactions(commands.Cog):
|
|||||||
s_query = await db_get('games', params=[
|
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'] + 1)
|
||||||
])
|
])
|
||||||
if s_query['count'] == 0 and current['week'] != 22:
|
if s_query['count'] == 0 and current['week'] != 18:
|
||||||
await ctx.send('It looks like your season is over so transactions are locked.')
|
await ctx.send('It looks like your season is over so transactions are locked.')
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user