From 26bf8ea5aacd4a7b34a116fd9374d9d82204e16d Mon Sep 17 00:00:00 2001 From: kritzl Date: Mon, 1 Apr 2024 01:56:56 +0200 Subject: [PATCH] fix random bug --- mafiasi/base/special_day_middleware.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mafiasi/base/special_day_middleware.py b/mafiasi/base/special_day_middleware.py index a909c2a..4f5bce5 100644 --- a/mafiasi/base/special_day_middleware.py +++ b/mafiasi/base/special_day_middleware.py @@ -21,9 +21,9 @@ def __call__(self, request): if n.day == 1 and n.month == 4: request.session["specialDay"] = "aprilfools" option = random.randint(0, 1) - if option == 1: + if option == 0: request.session["specialDayClasses"] += " first-of-april" - elif option == 2: + elif option == 1: translation.activate("en-uwu") request.LANGUAGE_CODE = translation.get_language()