a2a-source-edit: write agent.py
This commit is contained in:
2
agent.py
2
agent.py
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user