Skip to content

Commit

Permalink
Category checking with the same type in formatting course.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Bagryanov committed Jun 28, 2021
1 parent a199789 commit f582240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lti_synchronization/moodle/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def format_course(cls, course: JsonType) -> Course:
'course_id': cls.format_string(course['shortname']),
'title': course['displayname'],
'category': course['categoryid'],
'need_nbgrader': course['categoryid'] == os.environ['MOODLE_NBGRADER_CATEGORY_ID'],
'need_nbgrader': course['categoryid'] == int(os.environ['MOODLE_NBGRADER_CATEGORY_ID']),
'instructors': [],
'students': [],
'graders': [],
Expand Down

0 comments on commit f582240

Please sign in to comment.