feat: 更新账户运行记录逻辑,支持流程停止状态,优化样式以反映新状态

This commit is contained in:
祁连海
2026-04-17 22:34:30 +08:00
parent f5b622d272
commit 00b66d2157
5 changed files with 30 additions and 11 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ def normalize_account_run_snapshot_record(record):
email_addr = str(record.get("email") or "").strip()
password = str(record.get("password") or "").strip()
final_status = str(record.get("finalStatus") or "").strip().lower()
if not email_addr or not password or final_status not in {"success", "failed"}:
if not email_addr or not password or final_status not in {"success", "failed", "stopped"}:
return None
finished_at = str(record.get("finishedAt") or "").strip() or datetime.now(timezone.utc).isoformat().replace("+00:00", "Z")