From a4bce3cbce87b5c6c022326dca0cfeb3e8e65080 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Thu, 26 Dec 2024 12:13:43 -0600 Subject: [PATCH] Wipe cards on reset run --- gauntlets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gauntlets.py b/gauntlets.py index dbe0c64..80728f9 100644 --- a/gauntlets.py +++ b/gauntlets.py @@ -1760,10 +1760,10 @@ async def get_embed(this_run=None, this_event=None, this_team=None): 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 ' \ 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!' this_run = await db_patch( 'gauntletruns',