Aug 27 - Updated web dashboard card, inspection ownership

This commit is contained in:
2026-08-27 11:53:14 -04:00
parent a36cc93594
commit ba10ec42e0
5 changed files with 42 additions and 14 deletions
+1 -7
View File
@@ -318,13 +318,7 @@ def list_inspections():
# arm's `is_(None)` an inspector would keep seeing a follow-up that had
# been handed to someone else, and two people would turn up to do it.
if user.is_inspector:
query = query.filter(db.or_(
Inspection.follow_up_assigned_to == user.id,
db.and_(
Inspection.follow_up_assigned_to.is_(None),
Inspection.inspector_id == user.id,
),
))
query = query.filter(Inspection.follow_up_owned_by(user.id))
from_date_str = request.args.get('from_date')
if from_date_str: