fix(beatmap): missing greetlet in batch beatmap request

This commit is contained in:
MingxuanGame
2025-08-10 17:00:29 +00:00
parent a4e095c9ea
commit bc782cda01
2 changed files with 3 additions and 1 deletions

View File

@@ -158,7 +158,7 @@ class BeatmapResp(BeatmapBase):
from .score import Score
beatmap_ = beatmap.model_dump()
beatmap_status = beatmap_["beatmap_status"]
beatmap_status = beatmap.beatmap_status
if query_mode is not None and beatmap.mode != query_mode:
beatmap_["convert"] = True
beatmap_["is_scoreable"] = beatmap_status.has_leaderboard()

View File

@@ -108,6 +108,8 @@ async def batch_get_beatmaps(
)
if isinstance(beatmap, Beatmap)
)
for beatmap in beatmaps:
await db.refresh(beatmap)
return BatchGetResp(
beatmaps=[