style: 按 ruff 格式化登录队列代码并跳过已删除文件的推送检查
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ while read -r local_ref local_sha remote_ref remote_sha; do
|
||||
changed_paths="$(git diff --name-only "$remote_sha..$local_sha" -- '*.py')"
|
||||
fi
|
||||
while IFS= read -r path; do
|
||||
[ -n "$path" ] && python_files+=("$path")
|
||||
[ -n "$path" ] && [ -f "$path" ] && python_files+=("$path")
|
||||
done <<< "$changed_paths"
|
||||
done <<< "$push_lines"
|
||||
|
||||
|
||||
@@ -27,7 +27,9 @@ def _ok_result() -> HuyaLoginResult:
|
||||
)
|
||||
|
||||
|
||||
def _fail_result(message: str = "网络超时", code: str = "LOGIN_FAILED") -> HuyaLoginResult:
|
||||
def _fail_result(
|
||||
message: str = "网络超时", code: str = "LOGIN_FAILED"
|
||||
) -> HuyaLoginResult:
|
||||
return HuyaLoginResult(success=False, message=message, code=code)
|
||||
|
||||
|
||||
|
||||
@@ -662,9 +662,7 @@ def password_login_selected_accounts(
|
||||
current: User = Depends(get_current_user),
|
||||
):
|
||||
"""对已导入的虎牙账号执行 Web 密码登录(单线程,失败可重试)。"""
|
||||
return _run_selected_password_logins(
|
||||
channel="web", req=req, db=db, current=current
|
||||
)
|
||||
return _run_selected_password_logins(channel="web", req=req, db=db, current=current)
|
||||
|
||||
|
||||
@router.post("/accounts/app-password-login/selected")
|
||||
@@ -674,6 +672,4 @@ def app_password_login_selected_accounts(
|
||||
current: User = Depends(get_current_user),
|
||||
):
|
||||
"""对已导入的虎牙账号使用 App 协议逐个登录(推荐,单线程)。"""
|
||||
return _run_selected_password_logins(
|
||||
channel="app", req=req, db=db, current=current
|
||||
)
|
||||
return _run_selected_password_logins(channel="app", req=req, db=db, current=current)
|
||||
|
||||
Reference in New Issue
Block a user