From 832321893239259a21e7b10e9dfcec2c90e33123 Mon Sep 17 00:00:00 2001 From: wangweiye7840 Date: Tue, 5 Mar 2024 15:57:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=94=E9=A2=98=E7=BA=B8=E5=AF=B9=E5=BA=94?= =?UTF-8?q?=E4=B8=AD=E7=9A=84marks=E7=8E=B0=E5=9C=A8=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E4=B8=B2=E5=9E=8B=E7=9A=84=E6=95=B0=E5=AD=97?= =?UTF-8?q?(=E4=BF=AE=E4=BA=86=E4=B8=80=E4=B8=AAbug)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 工具v2/database_tools.py | 1 + 1 file changed, 1 insertion(+) diff --git a/工具v2/database_tools.py b/工具v2/database_tools.py index 65579e62..4267b5b2 100644 --- a/工具v2/database_tools.py +++ b/工具v2/database_tools.py @@ -1838,6 +1838,7 @@ def generateIDtoUsageCorrespondence(idlist,validcols,names): #根据idlist(题 def CalculateUsages(statsfilepathlist,statsfilename,gradename,threshold,marks,correspondence_dict,validcols,date): #根据统计数据所在的路径,文件名,年级,阈值,分数列表和题号列数(0-len(validcols))对应字典,以及原excel文件中的有效列位置validcols, 日期date, 生成usages的metadata.txt文件的内容, 如果有正确率大于1的则返回False output = "usages\n\n\n" validflag = True + marks = [int(mark) for mark in marks] for dir in statsfilepathlist: classname, valid = CheckValidity(dir,gradename,threshold) if valid: