diff --git a/server.py b/server.py index 977dff4..cfbda71 100644 --- a/server.py +++ b/server.py @@ -1129,7 +1129,8 @@ def list_assets( def search_by_machine_id(machine_id: str = Query(...)): conn = get_db() row = conn.execute( - "SELECT * FROM assets WHERE machine_id = ?", (machine_id,) + "SELECT * FROM assets WHERE machine_id = ? OR connect_id = ?", + (machine_id, machine_id), ).fetchone() conn.close() if row is None: diff --git a/static/index.html b/static/index.html index 3594a86..76b5fce 100644 --- a/static/index.html +++ b/static/index.html @@ -1091,7 +1091,7 @@