feat(detector): 新增封禁谱面表并检查可疑谱面
- 在数据库中添加了封禁谱面表(banned_beatmaps) - 实现了检查可疑谱面的功能,将不符合规范的谱面添加到封禁列表 - 更新了相关的模型和迁移文件
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user