Skip to content

Commit

Permalink
fixed typing error
Browse files Browse the repository at this point in the history
  • Loading branch information
michalmasrna1 committed Nov 27, 2024
1 parent fc400cd commit beecf40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion competition/views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

import csv
from datetime import datetime
from typing import Union

from allauth.account.models import EmailAddress
from allauth.account.signals import email_confirmed
Expand Down Expand Up @@ -402,7 +403,7 @@ def not_paid(request):
# This should probably be defined in another file


def game_redirect(game: Game, user: AbstractBaseUser | AnonymousUser):
def game_redirect(game: Game, user: Union[AbstractBaseUser, AnonymousUser]):
if not game.is_user_registered(user):
return redirect('competition:register-to-game', pk=game.pk)

Expand Down

0 comments on commit beecf40

Please sign in to comment.