获取单人使用记录更新为适配mariadb数据库

This commit is contained in:
wangweiye7840 2024-06-17 16:43:03 +08:00
parent 2f590d5a4e
commit c1bbc7fad8
1 changed files with 2 additions and 2 deletions

View File

@ -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