Files
api/routers/exam
CC WorkerandClaude Opus 4.8 44ccba2151
api-ci-deploy / test-build-deploy (push) Has been cancelled
fix(exam): guarantee auto-map child rows reference an inserted question
On papers where band detection yields few/no questions but opencv/gemma still emit response
regions, those regions referenced a synthetic default_qid that was never inserted -> FK violation
(exam_response_areas/exam_boundaries -> exam_questions). Ensure the fallback container question
exists and reattach orphan child rows to it.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-08 18:45:09 +00:00
..