Add 2D barcode scanning + connect_id search
- Add QR_CODE, DATA_MATRIX, PDF_417, AZTEC to barcode scanner hints so serial number stickers with 2D barcodes can be scanned - Update /api/assets/search to also match connect_id so full Connect IDs (e.g. VM-05912-0000068454) work when scanned - Bump SW cache v5→v6, footer v3.2→v3.3
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user