fix(recent_activity): fix rank & achievement event
运行 tools/fix_user_rank_event.py 修复现存的 event
This commit is contained in:
@@ -71,6 +71,18 @@ class GameMode(str, Enum):
|
||||
7: GameMode.FRUITSRX,
|
||||
}[v]
|
||||
|
||||
def readable(self) -> str:
|
||||
return {
|
||||
GameMode.OSU: "osu!",
|
||||
GameMode.TAIKO: "osu!taiko",
|
||||
GameMode.FRUITS: "osu!catch",
|
||||
GameMode.MANIA: "osu!mania",
|
||||
GameMode.OSURX: "osu!relax",
|
||||
GameMode.OSUAP: "osu!autopilot",
|
||||
GameMode.TAIKORX: "taiko relax",
|
||||
GameMode.FRUITSRX: "catch relax",
|
||||
}[self]
|
||||
|
||||
def to_special_mode(self, mods: list[APIMod] | list[str]) -> "GameMode":
|
||||
if self not in (GameMode.OSU, GameMode.TAIKO, GameMode.FRUITS):
|
||||
return self
|
||||
|
||||
Reference in New Issue
Block a user