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]