fix(beatmap): fix beatmap.beatmapset is None when it from from_resp

This commit is contained in:
MingxuanGame
2025-10-02 16:37:42 +00:00
parent 2e1d922f59
commit f34ed53a55
2 changed files with 10 additions and 5 deletions

View File

@@ -167,6 +167,7 @@ class Beatmapset(AsyncAttrs, BeatmapsetBase, table=True):
session.add(beatmapset)
await session.commit()
await Beatmap.from_resp_batch(session, resp.beatmaps, from_=from_)
beatmapset = (await session.exec(select(Beatmapset).where(Beatmapset.id == resp.id))).one()
return beatmapset
@classmethod