fix: 修改bug
This commit is contained in:
parent
dae788d386
commit
2dd01dfc50
|
@ -275,6 +275,7 @@ class PaperViewSet(ModelViewSet):
|
|||
def upload_paper(self, request):
|
||||
doc_path = request.data.get('doc_path')
|
||||
excel_path = settings.BASE_DIR + "/media/default/question.xlsx"
|
||||
doc_path = os.path.join(settings.BASE_DIR, doc_path)
|
||||
# excel_path = "C:\code\data\question.xlsx"
|
||||
timenow = timezone.now().strftime('%Y%m%d%H%M%S')
|
||||
question_excel_name = "question_excel_"+timenow
|
||||
|
|
Loading…
Reference in New Issue