导出答卷

This commit is contained in:
caoqianming 2021-10-31 23:55:58 +08:00
parent 73cbc025d3
commit 301d2ce174
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ def exportw_test(obj, bool):
""" """
导出个人考试记录word版本 导出个人考试记录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 path = '/media/export/' + filename
fullpath = BASE_DIR + path fullpath = BASE_DIR + path
if bool or (not os.path.exists(fullpath)): if bool or (not os.path.exists(fullpath)):