djaodjin / djaopsp

Practices Survey Platform - Assess against best practices assessment and improvement planning
BSD 2-Clause "Simplified" License
3 stars 6 forks source link

Correct answers and points #431

Open smirolo opened 8 months ago

smirolo commented 8 months ago

Following #423 , introduce a model that indicates a "correct" answer to a question when the Campaign is used as a quiz (we are only interested in questions with an default_unit of type SYSTEM_ENUMERATED at this point). Then modify the "complete" API endpoint (survey_api_sample_freeze_index / djaopsp.api.samples.AssessmentCompleteIndexAPIView) to calculate a score based on the answers in the sample and correct answers as defined in the database. Instead of having, say 1 point per correct answer, specify the number of points in the CorrectAnswer model.

smirolo commented 8 months ago

Currently being worked on as part of PR #433