diff --git a/agent.py b/agent.py index f5cf8e5..25714e8 100644 --- a/agent.py +++ b/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