feat(detector): 新增封禁谱面表并检查可疑谱面

- 在数据库中添加了封禁谱面表(banned_beatmaps)
- 实现了检查可疑谱面的功能,将不符合规范的谱面添加到封禁列表
- 更新了相关的模型和迁移文件
This commit is contained in:
chenjintang-shrimp
2025-08-15 08:05:02 +00:00
parent d87839f86e
commit 7c7c68c163
6 changed files with 158 additions and 2 deletions

View File

@@ -183,6 +183,10 @@ class Beatmapset(AsyncAttrs, BeatmapsetBase, table=True):
if not beatmapset:
resp = await fetcher.get_beatmapset(sid)
beatmapset = await cls.from_resp(session, resp)
# 检查可疑谱面
from app.calculator import get_suspscious_beatmap
await get_suspscious_beatmap(sid, session)
return beatmapset