导出答卷
This commit is contained in:
parent
73cbc025d3
commit
301d2ce174
|
@ -34,7 +34,7 @@ def exportw_test(obj, bool):
|
|||
"""
|
||||
导出个人考试记录word版本
|
||||
"""
|
||||
filename = obj.exam.name + '-' + str(obj.exam.id) + '-' + obj.consumer.name + '-' + obj.consumer.id + '.docx'
|
||||
filename = obj.exam.name + '-' + str(obj.exam.id) + '-' + obj.consumer_detail['name'] + '-' + str(obj.score) + '.docx'
|
||||
path = '/media/export/' + filename
|
||||
fullpath = BASE_DIR + path
|
||||
if bool or (not os.path.exists(fullpath)):
|
||||
|
|
Loading…
Reference in New Issue