From 83e3cbd0817c08952d257455d7a2a0cb7619cc41 Mon Sep 17 00:00:00 2001 From: Peter Date: Sun, 4 Feb 2024 09:26:02 -0500 Subject: [PATCH] Simplify is_div_week logic and end all weeks with day game --- cogs/transactions.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cogs/transactions.py b/cogs/transactions.py index b30ebfb..f81b660 100644 --- a/cogs/transactions.py +++ b/cogs/transactions.py @@ -618,13 +618,11 @@ class Transactions(commands.Cog): elif current['week'] > 14: season_str = f'\U0001F342 **Fall**' - is_div_week = False - if current['week'] in [1, 3, 6, 14, 16, 18]: - is_div_week = True + is_div_week = current['week'] in [1, 3, 6, 14, 16, 18] weekly_str = f'**Season**: {season_str}\n' \ f'**Time of Day**: {night_str} / {night_str if is_div_week else day_str} / ' \ - f'{night_str} / {night_str if is_div_week else day_str}' + f'{night_str} / {day_str}' await info_channel.send( content=f'Each team has manage permissions in their home ballpark. They may pin messages and rename the '