mitodl / micromasters

Portal for learners and course teams to access MITx Micromasters® programs
https://mm.mit.edu
BSD 3-Clause "New" or "Revised" License
28 stars 16 forks source link

Fix a bug in import grades task #5204

Closed annagav closed 2 years ago

annagav commented 2 years ago

What are the relevant tickets?

Related to #5180

What's this PR do?

Fixes a bug with retrieving user in the import_edx_exam_grades task

How should this be manually tested?

Create a csv file that looks like this:

studentid,email,username,finalexam,enrollmenttrack,verificationstatus,certificateeligible,certificatedelivered,certificatetype,enrollmentstatus,id_course,experimentgroupvariationab,id_semester,grade,passed,percentage_grade,no_show,flag,score,title,course_id
2,example@email.com,username,0,verified,ID Verified,N,N,N/A,enrolled,310,,spring22,fail,FALSE,0,1,,,Digital Learning 100,9

And run the task ./manage.py import_edx_exam_grades temp.csv