Skip to content

Commit

Permalink
fix: add default value for is_control (#31585)
Browse files Browse the repository at this point in the history
  • Loading branch information
zainab-amir authored Jan 18, 2023
1 parent a47f44d commit e999775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/djangoapps/student/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def is_course_recommended_on_user_dashboard(course_id):
if recommended_courses:
recommended_courses = json.loads(unquote(recommended_courses))
if course_id in recommended_courses['course_keys']:
return True, recommended_courses['is_control']
return True, recommended_courses.get('is_control')

return False, None

Expand Down

0 comments on commit e999775

Please sign in to comment.