Skip to content

Commit 703ce22

Browse files
author
iCAD Dispatch
committed
Fix iCAD push helper: use execute_query() instead of query() for SQLiteDatabase compatibility
1 parent 08fdd62 commit 703ce22

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

routes/api/call_upload.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,11 @@ def _push_call_to_public_map(
706706
LEFT JOIN call_corrections cc ON cr.call_id = cc.call_id
707707
WHERE cr.call_id = ?
708708
"""
709-
rows = db.query(sql, (call_id,), fetch_mode="all")
709+
res = db.execute_query(sql, (call_id,), fetch_mode="all")
710+
if not res.get("success"):
711+
route_logger.warning("Push to public_map: DB query failed for call_id=%s", call_id)
712+
return
713+
rows = res.get("result", [])
710714
if not rows:
711715
route_logger.warning("Push to public_map: call_id=%s not found in DB", call_id)
712716
return

0 commit comments

Comments
 (0)