fix(beatmap): fix beatmap.beatmapset is None when it from from_resp
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user