Skip to content

Commit

Permalink
fix: does not display questions if quiz is already taken (#1230)
Browse files Browse the repository at this point in the history
  • Loading branch information
MyuddinKhatri authored May 5, 2021
1 parent e9d98ec commit fc50c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/education/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def get_quiz(quiz_name, course):
course_enrollment = get_enrollment("course", course, student.name)
status, score, result = check_quiz_completion(quiz, course_enrollment)
return {
'questions': questions,
'questions': questions if not status else [],
'activity': {
'is_complete': status,
'score': score,
Expand Down

0 comments on commit fc50c7d

Please sign in to comment.