在答题纸处理中初步引入exclude机制

This commit is contained in:
weiye.wang 2024-03-27 07:03:31 +08:00
parent 87f1dc7bdc
commit f9d27f77a5
1 changed files with 6 additions and 2 deletions

View File

@ -1822,9 +1822,13 @@ def FindPaper(xiaoxianpid, answersheetpath): #根据小闲的试卷编号和答
marks = anssheetjson[xiaoxianpid]["marks"] marks = anssheetjson[xiaoxianpid]["marks"]
else: else:
marks = [] marks = []
if "exclude" in anssheetjson[xiaoxianpid]:
excludejson = anssheetjson[xiaoxianpid]["exclude"]
else:
excludejson = {}
break break
if foundpid: if foundpid:
return(pid,grade,idlist,marks) return(pid,grade,idlist,marks,excludejson)
else: else:
return False return False