feat: 更新账户运行记录逻辑,支持流程停止状态,优化样式以反映新状态
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user