From 80c5ea6b175511c98bbc7d1aa06005071c5b67ad Mon Sep 17 00:00:00 2001 From: Jennifer Taylor Date: Fri, 10 Sep 2021 15:20:13 +0000 Subject: [PATCH] Put MGS in alphabetical order on frontend. --- bemani/frontend/app.py | 58 +++++++++++++++++++++--------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/bemani/frontend/app.py b/bemani/frontend/app.py index 21a406a..b76240c 100644 --- a/bemani/frontend/app.py +++ b/bemani/frontend/app.py @@ -335,35 +335,6 @@ def navigation() -> Dict[str, Any]: }, ) - if GameConstants.MGA in g.config.support: - # Metal Gear Arcade pages - mga_entries = [] - if len([p for p in profiles if p[0] == GameConstants.MGA]) > 0: - mga_entries.extend([ - { - 'label': 'Game Options', - 'uri': url_for('mga_pages.viewsettings'), - }, - { - 'label': 'Personal Profile', - 'uri': url_for('mga_pages.viewplayer', userid=g.userID), - }, - ]) - mga_entries.extend([ - { - 'label': 'All Players', - 'uri': url_for('mga_pages.viewplayers'), - }, - ]) - pages.append( - { - 'label': 'Metal Gear Arcade', - 'entries': mga_entries, - 'base_uri': app.blueprints['mga_pages'].url_prefix, - 'gamecode': GameConstants.MGA.value, - }, - ) - if GameConstants.DDR in g.config.support: # DDR pages ddr_entries = [] @@ -511,6 +482,35 @@ def navigation() -> Dict[str, Any]: }, ) + if GameConstants.MGA in g.config.support: + # Metal Gear Arcade pages + mga_entries = [] + if len([p for p in profiles if p[0] == GameConstants.MGA]) > 0: + mga_entries.extend([ + { + 'label': 'Game Options', + 'uri': url_for('mga_pages.viewsettings'), + }, + { + 'label': 'Personal Profile', + 'uri': url_for('mga_pages.viewplayer', userid=g.userID), + }, + ]) + mga_entries.extend([ + { + 'label': 'All Players', + 'uri': url_for('mga_pages.viewplayers'), + }, + ]) + pages.append( + { + 'label': 'Metal Gear Arcade', + 'entries': mga_entries, + 'base_uri': app.blueprints['mga_pages'].url_prefix, + 'gamecode': GameConstants.MGA.value, + }, + ) + if GameConstants.MUSECA in g.config.support: # Museca pages museca_entries = []