feat(tags): add minimum vote count for top tags & provide official tags
Add configuration: `BEATMAP_TAG_TOP_COUNT` to control the minimun vote count Tips: this is 10 in osu-web, but private server doesn't have enough player so we use 2 as default value Official tags see: https://osu.ppy.sh/wiki/Beatmap/Beatmap_tags
This commit is contained in:
@@ -31,6 +31,7 @@ def load_tags() -> None:
|
||||
logger.info(f"tag {ALL_TAGS[tag['id']].name} and tag {tag['name']} have the same tag id")
|
||||
raise ValueError("duplicated tag id found")
|
||||
ALL_TAGS[tag["id"]] = BeatmapTags.model_validate(tag)
|
||||
logger.success(f"loaded {len(ALL_TAGS)} beatmap tags")
|
||||
|
||||
|
||||
def get_tag_by_id(id: int) -> BeatmapTags:
|
||||
|
||||
Reference in New Issue
Block a user