diff --git a/competition/views.py b/competition/views.py index 8eaa5f7..0f35d7a 100644 --- a/competition/views.py +++ b/competition/views.py @@ -372,7 +372,7 @@ def get(self, request, *args, **kwargs): def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) - context['game'] = self.object + context['game'] = Game.get_current() return context def form_valid(self, form): diff --git a/mas_problem/settings/settings.py b/mas_problem/settings/settings.py index 819b7c0..a36dcdf 100644 --- a/mas_problem/settings/settings.py +++ b/mas_problem/settings/settings.py @@ -169,5 +169,8 @@ def read_secret(secret_name: str) -> str: DEFAULT_FROM_EMAIL = 'noreply@strom.sk' SERVER_EMAIL = DEFAULT_FROM_EMAIL -ADMINS = [('Kovacs', 'kovacs@strom.sk'), ('Masrna', - 'michal.masrna@strom.sk'), ('Smilnak', 'martin.smilnak@strom.sk')] +ADMINS = [ + ('Kovacs', 'kovacs@strom.sk'), + ('Masrna','michal.masrna@strom.sk'), + ('Smilnak', 'martin.smilnak@strom.sk') +]