a2a-source-edit: write agent.py

This commit is contained in:
a2a-cloud
2026-07-18 04:48:55 +00:00
parent 3c03b32e9b
commit f4d5ef0c05

View File

@@ -488,7 +488,7 @@ async def _load_comparison(tenant_key: str, comparison_id: str) -> dict[str, Any
with _connect() as conn: with _connect() as conn:
with conn.cursor() as cur: with conn.cursor() as cur:
cur.execute( cur.execute(
"SELECT result FROM quote_comparisons WHERE tenant_key = %s AND comparison_id = %s", "SELECT COALESCE(result, payload) FROM quote_comparisons WHERE tenant_key = %s AND comparison_id = %s",
(tenant_key, comparison_id), (tenant_key, comparison_id),
) )
row = cur.fetchone() row = cur.fetchone()