diff --git a/server.py b/server.py index fe69380..2136be4 100644 --- a/server.py +++ b/server.py @@ -962,9 +962,9 @@ def list_assets( conditions.append("assigned_to = ?") params.append(assigned_to) if q: - conditions.append("(name LIKE ? OR machine_id LIKE ? OR description LIKE ?)") + conditions.append("(name LIKE ? OR machine_id LIKE ? OR serial_number LIKE ? OR description LIKE ?)") like = f"%{q}%" - params.extend([like, like, like]) + params.extend([like, like, like, like]) where = " AND ".join(conditions) sql = "SELECT * FROM assets"