a2a-source-edit: write agent.py
This commit is contained in:
2
agent.py
2
agent.py
@@ -505,7 +505,7 @@ async def _list_comparisons(tenant_key: str, limit: int) -> list[dict[str, Any]]
|
||||
with conn.cursor() as cur:
|
||||
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
|
||||
WHERE tenant_key = %s
|
||||
ORDER BY updated_at DESC
|
||||
|
||||
Reference in New Issue
Block a user