Skip to content

Add wrong answer review to quiz results - #201

Open
raviaarthi wants to merge 5 commits into
niat-web:mainfrom
raviaarthi:feature/wrong-answer-review
Open

raviaarthi wants to merge 5 commits into
niat-web:mainfrom
raviaarthi:feature/wrong-answer-review

Conversation

@raviaarthi

Copy link
Copy Markdown

Description

Adds a wrong-answer review feature to the quiz results page.

Changes

  • Displays incorrectly answered questions.
  • Shows the student's selected answer.
  • Shows the correct answer.
  • Adds a review section to the results page.

Testing

  • Tested locally.
  • Existing tests passed (43 tests).

Related issue

Related to Issue #5 (if applicable).

@raviaarthi raviaarthi left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have implemented the Wrong Answer Review feature on the quiz results page. It displays the questions answered incorrectly, the student's selected answer, and the correct answer to help students understand their mistakes and improve their learning.

Please review my changes. Thank you!

@raviaarthi

Copy link
Copy Markdown
Author

Hi maintainer! My PR #201 is ready for review. The wrong-answer review feature is implemented, and I have tested it locally. Could you please approve the pending workflow and review my PR? Thank you!

@niat-web

Copy link
Copy Markdown
Owner

Hi Aarthi, nice idea, but right now it doesn't work. The backend doesn't send wrong_answers, so the review section never shows. Please:

In routes.py, add the wrong answers (question, your answer, correct answer) to the submit response.
Don't remove the "My history" button. Keep the old code as it is.
Remove the extra "s" in result.html, and put your section outside the buttons div.
Add a test that checks wrong_answers in the submit response.
Run the app and test it before you push. Pull the latest main, then push again to the same branch.

… into feature/wrong-answer-review

.git/MERGE_MSG [unix] (19:18 27/11/2026)           1,1 All
<zMaster-clean/.git/MERGE_MSG" [unix] 6L, 323B   rge remote-tracking branch 'fork/feature/wrong-answer-review' into feature/wrong-answer-review
.git/MERGE_MSG [unix] (19:18 27/11/2026)           1,1 All
<zMaster-clean/.git/MERGE_MSG" [unix] 6L, 323B   rge remote-tracking branch 'fork/feature/wrong-answer-review' into feature/wrong-answer-review
.git/MERGE_MSG [unix] (19:18 27/11/2026)           1,1 All
<zMaster-clean/.git/MERGE_MSG" [unix] 6L, 323B   mote-tracking branch 'fork/feature/wrong-answer-review' into feature/wrong-answer-review
@raviaarthi

Copy link
Copy Markdown
Author

Hi, thank you for your feedback! I've addressed all the requested changes, added a test for wrong-answer details, and tested the application manually. I also merged the latest main changes into my branch. All 87 tests are passing, and I've pushed the updates to the same branch. Could you please review it again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants