From 6d258f1027fb5090b9e49704ceb2f088a8da0ef1 Mon Sep 17 00:00:00 2001 From: Jennifer Taylor Date: Mon, 6 Sep 2021 18:56:49 +0000 Subject: [PATCH] Fix a few nits from recent PR. --- bemani/data/triggers.py | 1 + bemani/frontend/app.py | 2 +- bemani/frontend/mga/endpoints.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bemani/data/triggers.py b/bemani/data/triggers.py index 686d19a..a2467ff 100644 --- a/bemani/data/triggers.py +++ b/bemani/data/triggers.py @@ -21,6 +21,7 @@ class Triggers: GameConstants.DDR: 'Dance Dance Revolution', GameConstants.IIDX: 'Beatmania IIDX', GameConstants.JUBEAT: 'Jubeat', + GameConstants.MGA: 'Metal Gear Arcade', GameConstants.MUSECA: 'MÚSECA', GameConstants.POPN_MUSIC: 'Pop\'n Music', GameConstants.REFLEC_BEAT: 'Reflec Beat', diff --git a/bemani/frontend/app.py b/bemani/frontend/app.py index a70ce1d..d7e2506 100644 --- a/bemani/frontend/app.py +++ b/bemani/frontend/app.py @@ -360,7 +360,7 @@ def navigation() -> Dict[str, Any]: 'label': 'Metal Gear Arcade', 'entries': mga_entries, 'base_uri': app.blueprints['mga_pages'].url_prefix, - 'gamecode': GameConstants.MGA, + 'gamecode': GameConstants.MGA.value, }, ) diff --git a/bemani/frontend/mga/endpoints.py b/bemani/frontend/mga/endpoints.py index 16db8d6..48b0dca 100644 --- a/bemani/frontend/mga/endpoints.py +++ b/bemani/frontend/mga/endpoints.py @@ -15,7 +15,7 @@ from bemani.frontend.types import g mga_pages = Blueprint( 'mga_pages', __name__, - url_prefix='/mga', + url_prefix=f'/{GameConstants.MGA.value}', template_folder=templates_location, static_folder=static_location, )