chore(linter): update ruff rules

This commit is contained in:
MingxuanGame
2025-10-03 15:46:53 +00:00
parent b10425ad91
commit d490239f46
59 changed files with 393 additions and 425 deletions

View File

@@ -128,7 +128,11 @@ class LoginLogService:
login_success=False,
login_method=login_method,
user_agent=user_agent,
notes=f"Failed login attempt: {attempted_username}" if attempted_username else "Failed login attempt",
notes=(
f"Failed login attempt on user {attempted_username}: {notes}"
if attempted_username
else "Failed login attempt"
),
)