Spaces:
Runtime error

rogasper commited on
Commit
dee29ff
·
1 Parent(s): 72e7de2

feat: refactor AttemptResultComponent to calculate percentage based on question statistics instead of attempt scores. Update integration tests to validate maxScore calculation across multiple sections. Ensure proper type handling for question counts in attempt router, enhancing data integrity and performance.

Browse files
3 files changed +98 -12
Files changed (3)
apps/web/src/routes/attempt.$id.tsx+15-8
packages/api/src/__tests__/attempt.integration.test.ts+79
packages/api/src/routers/attempt.ts+4-4