March 17 2026: santinize code

This commit is contained in:
2026-03-17 11:13:42 -04:00
parent 75276da8ec
commit 46df092a61
7 changed files with 13 additions and 43 deletions
+1 -20
View File
@@ -477,26 +477,7 @@ def view(inspection_id):
parent_form_data = parsed_p.get('_form_data', {})
except (json.JSONDecodeError, TypeError):
pass
'''
# ── DEBUG: log raw schema + form_data so we can see what's actually stored ──
current_app.logger.warning(
'COMPARISON DEBUG | inspection_id=%s | current_form_data=%s',
inspection_id, json.dumps(form_data)
)
current_app.logger.warning(
'COMPARISON DEBUG | parent_id=%s | parent_form_data=%s',
parent.id, json.dumps(parent_form_data)
)
current_app.logger.warning(
'COMPARISON DEBUG | form_fields=%s',
json.dumps([
{'id': f.get('id'), 'type': f.get('type'), 'row': f.get('row'),
'col': f.get('col'), 'label': f.get('label'), 'text_content': f.get('text_content')}
for f in form_fields
])
)
# ── END DEBUG ──
'''
scoreable_types = ('rating', 'checkbox', 'radio')
# Collect all text/textarea fields per row, keyed by (col, fid)