Closed stawuah closed 5 months ago
ok cool
And also about the exam we would have to restructure the code to work like a google form add a question and add options afterwards
Done on the backend 👌
ok better because that's not how @RWUBAKWANAYO said he implemented it that's why
Yes and also @RWUBAKWANAYO would have to brief @muhenge and i on how he did the exam, but anyway to work like a Google form the changes need to be done on the UI the backend can still remain the same
I have a new modification
We call the
getTimeRangePupilTookExam
function within thegetExamWithQustionsAndOptions
function to calculate the time range the pupil took the exam.If the user's role is a
pupil
, we check theexam availability
andcalculate the time range
.We add the
calculated time range
to the exam object before sending it in the response.Now with this modification, when a pupil requests exam details, the response will include the calculated time range along with the exam details. This provides additional information about when the pupil took the exam.