Wipe cards on reset run
This commit is contained in:
parent
fa109442c2
commit
a4bce3cbce
@ -1760,10 +1760,10 @@ async def get_embed(this_run=None, this_event=None, this_team=None):
|
|||||||
return embed
|
return embed
|
||||||
|
|
||||||
|
|
||||||
async def end_run(this_run, this_event, this_team):
|
async def end_run(this_run, this_event, this_team, force_end: bool = False):
|
||||||
l_message = f'Tough loss. That brings your {this_event["name"]} record to ' \
|
l_message = f'Tough loss. That brings your {this_event["name"]} record to ' \
|
||||||
f'**{this_run["wins"]}-{this_run["losses"]}**. '
|
f'**{this_run["wins"]}-{this_run["losses"]}**. '
|
||||||
if this_run['losses'] == 2:
|
if this_run['losses'] == 2 or force_end:
|
||||||
l_message += 'That\'s the end of this run - better luck next time!'
|
l_message += 'That\'s the end of this run - better luck next time!'
|
||||||
this_run = await db_patch(
|
this_run = await db_patch(
|
||||||
'gauntletruns',
|
'gauntletruns',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user