From 9790d7c12c191057eefc0401258efc6e21838d43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Bagi=C5=84ski?= Date: Sun, 1 Oct 2023 16:03:22 +0200 Subject: [PATCH] no autoposting to work-in-progress questions on wednesday --- modules/questions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/questions.py b/modules/questions.py index bc04760..8996091 100644 --- a/modules/questions.py +++ b/modules/questions.py @@ -415,7 +415,7 @@ async def autopost_not_started(self) -> None: def is_time_for_autopost_wip(self) -> bool: now = datetime.now() return ( - now.weekday() in (0, 2, 4) # Monday, Wednesday, or Friday + now.weekday() in (0, 4) # Monday or Friday and 8 <= now.hour <= 12 # between 08:00 and 12:00 and self.last_wip_autopost_attempt_date != now.date() # Wasn't posted today yet