From f9d27f77a5d21d8b994f94c628a402d55b55a674 Mon Sep 17 00:00:00 2001 From: "weiye.wang" Date: Wed, 27 Mar 2024 07:03:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E7=AD=94=E9=A2=98=E7=BA=B8=E5=A4=84?= =?UTF-8?q?=E7=90=86=E4=B8=AD=E5=88=9D=E6=AD=A5=E5=BC=95=E5=85=A5exclude?= =?UTF-8?q?=E6=9C=BA=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 工具v2/database_tools.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/工具v2/database_tools.py b/工具v2/database_tools.py index 7628d69a..3ec01401 100644 --- a/工具v2/database_tools.py +++ b/工具v2/database_tools.py @@ -1822,9 +1822,13 @@ def FindPaper(xiaoxianpid, answersheetpath): #根据小闲的试卷编号和答 marks = anssheetjson[xiaoxianpid]["marks"] else: marks = [] - break + if "exclude" in anssheetjson[xiaoxianpid]: + excludejson = anssheetjson[xiaoxianpid]["exclude"] + else: + excludejson = {} + break if foundpid: - return(pid,grade,idlist,marks) + return(pid,grade,idlist,marks,excludejson) else: return False