From c1bbc7fad8aa12e7f383ee4f4d9fd9fdf662edce Mon Sep 17 00:00:00 2001 From: wangweiye7840 Date: Mon, 17 Jun 2024 16:43:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=8D=95=E4=BA=BA=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E8=AE=B0=E5=BD=95=E6=9B=B4=E6=96=B0=E4=B8=BA=E9=80=82?= =?UTF-8?q?=E9=85=8Dmariadb=E6=95=B0=E6=8D=AE=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 工具v4/database_tools_2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/工具v4/database_tools_2.py b/工具v4/database_tools_2.py index 4411ba15..de9e4a12 100644 --- a/工具v4/database_tools_2.py +++ b/工具v4/database_tools_2.py @@ -3336,7 +3336,7 @@ def findxiaobenIDs(cursor,grade = ""): #根据jsonpath中的校本材料获取gr return jsonIDs -def generateUsagedetail(zipfilepath,tempdir,answersheetseekingpath,statsfilename,threshold,date): #根据zipfilepath文件路径, threshold最低提交比例阈值, date日期产生对应一张答题纸的使用记录 +def generateUsagedetail(zipfilepath,tempdir,cursor,statsfilename,threshold,date): #根据zipfilepath文件路径, threshold最低提交比例阈值, date日期产生对应一张答题纸的使用记录 try: shutil.rmtree(tempdir) except: @@ -3344,7 +3344,7 @@ def generateUsagedetail(zipfilepath,tempdir,answersheetseekingpath,statsfilename makedir(tempdir) # try: xiaoxianpid = ParseZipname(zipfilepath) - paperinfo = FindPaper(xiaoxianpid, answersheetseekingpath) + paperinfo = FindPaper(xiaoxianpid, cursor) if type(paperinfo) == bool: print("!!!!!",zipfilepath) return 1