fix: add/find tab now lookup-only, nav fix, route techs fix

- Add/Find tab: removed check-in card and add-asset form, now pure lookup
- OCR: stop camera after capture, added GPS capture at photo time
- OCR: increased timeout from 8s to 15s to reduce 500 errors
- Nav tab: added GPS prompt + asset search when navigating directly
- Route: include all 26 techs from bookableresource table (not just Shawn)
This commit is contained in:
2026-05-29 00:10:30 -04:00
parent 1db6475f83
commit 9ee8de8578
2 changed files with 166 additions and 32 deletions
+5 -7
View File
@@ -2972,13 +2972,11 @@ async def workorders_technicians():
try:
cur = conn.cursor()
cur.execute(
"""
SELECT DISTINCT b."resource!name" AS technician
FROM bookableresourcebooking b
WHERE b."resource!name" IS NOT NULL
AND b."resource!name" != ''
ORDER BY technician
"""
"""SELECT DISTINCT name AS technician FROM bookableresource WHERE name IS NOT NULL AND name != ''
UNION
SELECT DISTINCT b."resource!name" AS technician FROM bookableresourcebooking b
WHERE b."resource!name" IS NOT NULL AND b."resource!name" != ''
ORDER BY technician"""
)
techs = [r["technician"] for r in cur.fetchall()]
return {"technicians": techs, "total": len(techs)}