Show upload status and log KDocs skips

This commit is contained in:
2026-01-07 14:28:58 +08:00
parent 703a62b6ad
commit 45cbdc51b4
3 changed files with 43 additions and 3 deletions

View File

@@ -862,6 +862,8 @@ def get_kdocs_status_api():
status["last_error"] = live_status.get("error")
else:
status["logged_in"] = True if status.get("last_login_ok") else False if status.get("last_login_ok") is False else None
if status.get("last_login_ok") is True and status.get("last_error") == "操作超时":
status["last_error"] = None
return jsonify(status)
except Exception as e:
return jsonify({"error": f"获取状态失败: {e}"}), 500