From d1ab36a543c26aa21057bdc53f1e977f4a2a4ee8 Mon Sep 17 00:00:00 2001 From: OpenClaw Bot Date: Fri, 20 Feb 2026 00:21:14 +0800 Subject: [PATCH] Fix get_attribute_history query to not use template_id column --- backend/db_manager.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/db_manager.py b/backend/db_manager.py index 38ffcc2..7af13e2 100644 --- a/backend/db_manager.py +++ b/backend/db_manager.py @@ -829,9 +829,8 @@ class DatabaseManager: where_clause = " AND ".join(conditions) if conditions else "1=1" rows = conn.execute( - f"""SELECT ah.*, at.name as template_name + f"""SELECT ah.* FROM attribute_history ah - JOIN attribute_templates at ON ah.template_id = at.id WHERE {where_clause} ORDER BY ah.changed_at DESC LIMIT ?""", params + [limit]