Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fanglinfang committed Sep 20, 2024
1 parent d779b7b commit 317b9f2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions myuw/dao/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,18 @@ def set_section_canvas_course_urls(canvas_active_enrollments, schedule,
section_labels = set()
for section in schedule.sections:
section_labels.add(section.section_label())
logger.info({
'section_label': section.section_label()})

canvas_links = {} # sis_course_id: canvas course_url
for enrollment in canvas_active_enrollments:
(sws_label, inst_regid) = sws_section_label(enrollment.sis_course_id)
logger.info({
'sws_label': sws_label,
'sis_course_id': sis_course_id,
'canvas_course_url': enrollment.course_url})
if sws_label is not None and sws_label in section_labels:
sis_course_id = enrollment.sis_course_id
logger.info({
'sis_course_id': sis_course_id,
'canvas_course_url': enrollment.course_url})
if sis_course_id not in canvas_links:
canvas_links[sis_course_id] = enrollment.course_url

Expand Down

0 comments on commit 317b9f2

Please sign in to comment.