1
0
mirror of synced 2024-11-27 15:40:48 +01:00

Fix a few omissions.

This commit is contained in:
Jennifer Taylor 2022-11-01 03:29:56 +00:00
parent d14317c18c
commit 38556ee282
2 changed files with 3 additions and 3 deletions

View File

@ -198,7 +198,7 @@ def viewtopscores(musicid: int) -> Response:
for omniadd in [0, DBConstants.OMNIMIX_VERSION_BUMP]:
for chart in [0, 1, 2, 3, 4, 5]:
details = g.data.local.music.get_song(
GameConstants.JUBEAT, version, musicid, chart
GameConstants.JUBEAT, version + omniadd, musicid, chart
)
if details is not None:
name = details.name

View File

@ -3,7 +3,7 @@ import re
from typing import Any, Dict
from flask import Blueprint, request, Response, url_for, abort
from bemani.common import GameConstants
from bemani.common import DBConstants, GameConstants
from bemani.data import UserID
from bemani.frontend.app import loginrequired, jsonify, render_react
from bemani.frontend.museca.museca import MusecaFrontend
@ -186,7 +186,7 @@ def viewtopscores(musicid: int) -> Response:
difficulties = [0, 0, 0, 0, 0]
for version in versions:
for omniadd in [0, 10000]:
for omniadd in [0, DBConstants.OMNIMIX_VERSION_BUMP]:
for chart in [0, 1, 2, 3, 4]:
details = g.data.local.music.get_song(
GameConstants.MUSECA, version + omniadd, musicid, chart