Skip to content

Commit

Permalink
fix random bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kritzl committed Mar 31, 2024
1 parent e6c3621 commit 26bf8ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mafiasi/base/special_day_middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 26bf8ea

Please sign in to comment.