fix: 删掉 NL 合并后残留的未使用变量 role_ids(ruff F841)

This commit is contained in:
2026-09-12 14:17:42 +08:00
parent 58c28ef4a0
commit ffbcc229c2
-1
View File
@@ -154,7 +154,6 @@ async def seed() -> None:
# "尚未生效",于是刚种好的账号一个权限都拿不到(表现为 roles=() 而非报错)。
# 往前留 5 秒,彻底避开这个舍入窗口。
effective_at = now - timedelta(seconds=5)
role_ids = tuple(role[0] for role in ROLES)
async with SessionFactory() as session:
await session.execute(
text("DELETE FROM sys_role_permission WHERE role_id IN (9001,9002,9003)")