a2a-source-edit: write agent.py

This commit is contained in:
a2a-cloud
2026-07-18 04:48:52 +00:00
parent 504cb9aac8
commit 3c03b32e9b

View File

@@ -505,7 +505,7 @@ async def _list_comparisons(tenant_key: str, limit: int) -> list[dict[str, Any]]
with conn.cursor() as cur: with conn.cursor() as cur:
cur.execute( cur.execute(
""" """
SELECT comparison_id, recommendation_vendor, updated_at, result SELECT comparison_id, COALESCE(recommendation_vendor, recommended_vendor), updated_at, COALESCE(result, payload)
FROM quote_comparisons FROM quote_comparisons
WHERE tenant_key = %s WHERE tenant_key = %s
ORDER BY updated_at DESC ORDER BY updated_at DESC