From fe1d73d67f22f2c6c903ed5a60eca3be7901dc50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Wed, 25 Aug 2021 21:24:28 +0200 Subject: [PATCH] Return the_finaL_countdown variable immediately rip joke --- discord_reminder_bot/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/discord_reminder_bot/main.py b/discord_reminder_bot/main.py index 26f376b..3f6c4eb 100644 --- a/discord_reminder_bot/main.py +++ b/discord_reminder_bot/main.py @@ -56,7 +56,7 @@ def calc_countdown(job) -> str: countdown.seconds // 3600, countdown.seconds // 60 % 60, ) - the_final_countdown = ", ".join( + return ", ".join( f"{x} {y}{'s'*(x!=1)}" for x, y in ( (days, "day"), @@ -65,7 +65,6 @@ def calc_countdown(job) -> str: ) if x ) - return the_final_countdown @bot.event