Skip to content

Conversation

@harishdurga
Copy link
Owner

Change Log:

  • New JSON field negative_marking_settings added to quizzes table to store negative marking settings. Properties are enable_negative_marks:Boolean, negative_marking_type:(fixed,percentage),negative_mark_value:any valid number >= zero.
  • User-defined custom methods to evaluate a custom question type can be configured from the configuration file.
  • 4 Static Methods added to QuizAttempt model: get_score_for_type_1_question, get_score_for_type_2_question, get_score_for_type_3_question, get_negative_marks_for_question.
  • New migration file to add negative_marking_settings JSON column to new and existing tables.
  • Test cases were added to test the newly added methods and settings.

@harishdurga harishdurga merged commit b0fc28e into main Jun 5, 2022
@harishdurga harishdurga deleted the feature/negative_marks branch June 5, 2022 06:02
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