diff --git a/app/main/routes.py b/app/main/routes.py index 144a3c0..5ca0715 100644 --- a/app/main/routes.py +++ b/app/main/routes.py @@ -64,7 +64,7 @@ def change_game_settings(game_name): form.old_name = game.name if request.method == 'GET': - form.state.default = game.state.value + form.state.default = game.get_state().value # pylint: disable=no-member form.process() form.game_name.data = game.name diff --git a/app/templates/_game_player_info.html b/app/templates/_game_player_info.html index 3843b12..17e994f 100644 --- a/app/templates/_game_player_info.html +++ b/app/templates/_game_player_info.html @@ -15,7 +15,7 @@
Start Time: {% if game.start_time %}{{ moment(game.start_time).format('DD-MM-YYYY, HH:mm') }}{% else %}None{% endif %}
End Time: {% if game.end_time %}{{ moment(game.end_time).format('DD-MM-YYYY, HH:mm') }}{% else %}None{% endif %}
-State: {{ game.state.name.title() }}
+State: {{ game.get_state().name.title() }}