Update gametop.py

This commit is contained in:
mee19mc 2025-08-06 21:13:53 +08:00 committed by GitHub
parent bc6bc2ba10
commit 881d40477e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,7 +9,7 @@ from core_database import get_db
router = APIRouter(prefix="/local", tags=["local"])
router.model_whitelist = ["M32"]
router.model_whitelist = ["M32", "L33", "L32", "K33", "K32", "J33", "J32"]
def get_profile(cid):
@ -32,6 +32,10 @@ async def gitadora_gametop_get(ver: str, request: Request):
g = "guitarfreaks"
elif spec == "B":
g = "drummania"
elif spec == "C":
g = "guitarfreaksdelta"
elif spec == "D":
g = "drummaniadelta"
data = request_info["root"][0].find("player")
no = int(data.attrib["no"])