style(backend): apply ruff format

This commit is contained in:
2026-05-03 18:14:23 +08:00
parent 738217d9c9
commit ab68f019c5
41 changed files with 960 additions and 970 deletions
+2 -1
View File
@@ -5,6 +5,7 @@
使用方法:
uv run python apps/backend/scripts/create_admin.py
"""
import sys
from pathlib import Path
@@ -51,7 +52,7 @@ def create_admin_user(alias: str):
# 升级为管理员
response = input("\n是否将该用户升级为管理员?(y/n): ")
if response.lower() == 'y':
if response.lower() == "y":
existing_user.role = "admin"
existing_user.is_approved = True # 确保已审批
db.commit()