Merge branch 'kimth/send-idhash' of https://github.com/MITx/mitx into kimth/send-idhash
This commit is contained in:
@@ -1146,8 +1146,11 @@ class CodeResponse(LoncapaResponse):
|
||||
|
||||
contents = self.payload.copy()
|
||||
|
||||
# Anonymized student identifier to the external grader
|
||||
student_info = {'anonymous_student_id': anonymous_student_id}
|
||||
# Metadata related to the student submission revealed to the external grader
|
||||
current_time = datetime.now()
|
||||
student_info = {'anonymous_student_id': anonymous_student_id,
|
||||
'submission_time': str(current_time),
|
||||
}
|
||||
contents.update({'student_info': json.dumps(student_info)})
|
||||
|
||||
# Submit request. When successful, 'msg' is the prior length of the queue
|
||||
|
||||
Reference in New Issue
Block a user