Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ollo69 committed Feb 4, 2024
1 parent 03eb972 commit 3e1c08d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def _update_course_info(self, data, course_id=None):
if course_id is None:
# check if this course is defined in data payload
for course_key in [n_course_key, s_course_key]:
course_id = str(data.get(course_key))
course_id = str(ret_data.get(course_key))
if course_info := self._get_course_info(course_key, course_id):
course_set = True
break
Expand All @@ -178,7 +178,8 @@ def _update_course_info(self, data, course_id=None):

# save information for specific or default course
if course_info:
ret_data[n_course_key] = course_id
if not course_set:
ret_data[n_course_key] = course_id
for func_key in course_info["function"]:
key = func_key.get("value")
if course_set and key in ret_data:
Expand Down

0 comments on commit 3e1c08d

Please sign in to comment.