示例#1
0
def create_exam(usr,examtype,ts):
	curr_exam=ExamAttended(exam=examtype,user=usr)#create new exam
	curr_exam.save()
	return (curr_exam,ts)
示例#2
0
def create_exam(usr,examtype):
	curr_exam=ExamAttended(exam=examtype,user=usr)#create new exam
	curr_exam.save()
	sec_left=10800
	return (curr_exam,sec_left)