From 7486a28584191b18c27327c6d206174e8dfd03f9 Mon Sep 17 00:00:00 2001 From: 13507605001 Date: Tue, 29 Nov 2022 17:17:02 +0800 Subject: [PATCH] 1 --- apps/drug_template/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/drug_template/views.py b/apps/drug_template/views.py index a64731c..0273803 100644 --- a/apps/drug_template/views.py +++ b/apps/drug_template/views.py @@ -309,7 +309,7 @@ def get_file_list(): if not file_path: return jsonify(Utils.false_return(msg="请插入U盘")) data_file_list = list(filter(lambda x: re.match( - 'tem_.*?.xlsx', x), os.listdir(file_path))) + 'tem.*?.xlsx', x), os.listdir(file_path))) return jsonify(Utils.true_return(data=data_file_list)) # return jsonify(Utils.true_return(data=os.listdir(file_path)))