1
0
mirror of synced 2024-11-12 01:00:46 +01:00

MUSECA PLUS: Webui fix

This commit is contained in:
seth 2020-12-06 04:42:42 +00:00 committed by Jennifer Taylor
parent 13c0d02e45
commit 349a34d25d
2 changed files with 3 additions and 2 deletions

View File

@ -101,7 +101,7 @@ def viewnetworkrecords() -> Response:
frontend = MusecaFrontend(g.data, g.config, g.cache)
network_records = frontend.get_network_records()
versions = {version: name for (game, version, name) in frontend.all_games()}
versions[0] = 'CS and Licenses'
versions[10002] = 'MÚSECA PLUS'
return render_react(
'Global MÚSECA Records',
@ -139,6 +139,7 @@ def viewrecords(userid: UserID) -> Response:
if info is None:
abort(404)
versions = {version: name for (game, version, name) in frontend.all_games()}
versions[10002] = 'MÚSECA PLUS' # Hard code this version name for modpack songs
return render_react(
f'{info["name"]}\'s MÚSECA Records',

View File

@ -2852,7 +2852,7 @@ class ImportMuseca(ImportBase):
elif actual_version == VersionConstants.MUSECA_1_PLUS + DBConstants.OMNIMIX_VERSION_BUMP:
self.charts = [0, 1, 2, 3]
else:
raise Exception("Unsupported Museca version, expected one of the following: 1, 1+1/2!")
raise Exception("Unsupported Museca version, expected one of the following: 1, 1+1/2, plus!")
super().__init__(config, GameConstants.MUSECA, actual_version, no_combine, update)