Apr 1 2026: clean up code

This commit is contained in:
2026-04-01 13:15:05 -04:00
parent f399537246
commit 093d3a0043
11 changed files with 52 additions and 29 deletions
+2 -2
View File
@@ -318,7 +318,7 @@ def execute(inspection_id):
# fields (rating, pass_fail) so the inspector doesn't re-enter static
# data but must re-evaluate every scoreable item fresh.
if not saved_responses and inspection.parent_inspection_id:
parent = Inspection.query.get(inspection.parent_inspection_id)
parent = db.session.get(Inspection, inspection.parent_inspection_id)
if parent and parent.notes:
try:
parent_parsed = json.loads(parent.notes)
@@ -717,7 +717,7 @@ def flag_issue(inspection_id):
)
if issue.assigned_to:
assignee = User.query.get(issue.assigned_to)
assignee = db.session.get(User, issue.assigned_to)
if assignee and assignee.id != current_user.id:
notify(
recipient = assignee,