feat(custom-rulesets): support custom rulesets (#23)
* feat(custom_ruleset): add custom rulesets support * feat(custom-ruleset): add version check * feat(custom-ruleset): add LegacyIO API to get ruleset hashes * feat(pp): add check for rulesets whose pp cannot be calculated * docs(readme): update README to include support for custom rulesets * fix(custom-ruleset): make `rulesets` empty instead of throw a error when version check is disabled Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * chore(custom-ruleset): apply the latest changes of generatorc891bcd159ande25041ad3b* feat(calculator): add fallback performance calculation for unsupported modes * fix(calculator): remove debug print * fix: resolve reviews * feat(calculator): add difficulty calculation checks --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -152,7 +152,7 @@ async def get_beatmaps(
|
||||
beatmap_id: Annotated[int | None, Query(alias="b", description="谱面 ID")] = None,
|
||||
user: Annotated[str | None, Query(alias="u", description="谱师")] = None,
|
||||
type: Annotated[Literal["string", "id"] | None, Query(description="用户类型:string 用户名称 / id 用户 ID")] = None,
|
||||
ruleset_id: Annotated[int | None, Query(alias="m", description="Ruleset ID", ge=0, le=3)] = None, # TODO
|
||||
ruleset_id: Annotated[int | None, Query(alias="m", description="Ruleset ID")] = None, # TODO
|
||||
convert: Annotated[bool, Query(alias="a", description="转谱")] = False, # TODO
|
||||
checksum: Annotated[str | None, Query(alias="h", description="谱面文件 MD5")] = None,
|
||||
limit: Annotated[int, Query(ge=1, le=500, description="返回结果数量限制")] = 500,
|
||||
|
||||
Reference in New Issue
Block a user