Skip to content

Commit

Permalink
Merge branch 'main' into increase-cov
Browse files Browse the repository at this point in the history
  • Loading branch information
Reimirno authored Nov 28, 2023
2 parents 99fe5f0 + 43cea62 commit 4e17aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/services/core/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def validate_students(exam, headers, rows):
if not canvas_id or not email or not name:
# dangerous. Might skip students without notifying staff
continue
student = Student.query.filter_by(exam_id=exam.id, canvas_id=canvas_id).first()
student = Student.query.filter_by(exam_id=int(exam.id), canvas_id=str(canvas_id)).first()
if not student:
student = Student(exam_id=exam.id, canvas_id=canvas_id)
student.name = name or student.sid
Expand Down

0 comments on commit 4e17aa3

Please sign in to comment.