fix(beatmap): missing greetlet in batch beatmap request
This commit is contained in:
@@ -158,7 +158,7 @@ class BeatmapResp(BeatmapBase):
|
|||||||
from .score import Score
|
from .score import Score
|
||||||
|
|
||||||
beatmap_ = beatmap.model_dump()
|
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:
|
if query_mode is not None and beatmap.mode != query_mode:
|
||||||
beatmap_["convert"] = True
|
beatmap_["convert"] = True
|
||||||
beatmap_["is_scoreable"] = beatmap_status.has_leaderboard()
|
beatmap_["is_scoreable"] = beatmap_status.has_leaderboard()
|
||||||
|
|||||||
@@ -108,6 +108,8 @@ async def batch_get_beatmaps(
|
|||||||
)
|
)
|
||||||
if isinstance(beatmap, Beatmap)
|
if isinstance(beatmap, Beatmap)
|
||||||
)
|
)
|
||||||
|
for beatmap in beatmaps:
|
||||||
|
await db.refresh(beatmap)
|
||||||
|
|
||||||
return BatchGetResp(
|
return BatchGetResp(
|
||||||
beatmaps=[
|
beatmaps=[
|
||||||
|
|||||||
Reference in New Issue
Block a user