feat(solo-score): support submit solo scores

This commit is contained in:
MingxuanGame
2025-07-27 02:33:42 +00:00
parent 9b5d952f6d
commit b359be3637
14 changed files with 4170 additions and 64 deletions

View File

@@ -65,6 +65,10 @@ class Beatmap(BeatmapBase, table=True):
# optional
beatmapset: Beatmapset = Relationship(back_populates="beatmaps")
@property
def can_ranked(self) -> bool:
return self.beatmap_status > BeatmapRankStatus.PENDING
@classmethod
async def from_resp(cls, session: AsyncSession, resp: "BeatmapResp") -> "Beatmap":
d = resp.model_dump()