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:
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user