From 87f1dc7bdc6fd146c23f80e1d42f3ee33103748f Mon Sep 17 00:00:00 2001 From: "weiye.wang" Date: Tue, 26 Mar 2024 23:32:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=BC=E5=85=A5=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E8=AE=B0=E5=BD=95=E4=B8=AD=E7=9A=84=E4=B8=80=E4=B8=AA?= =?UTF-8?q?bug?= 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 f1e3a366..7628d69a 100644 --- a/工具v2/database_tools.py +++ b/工具v2/database_tools.py @@ -676,6 +676,7 @@ def AppendUsageData2024(prodict,field_id_and_content): break if importflag: for u in oldusages: + oldusage = parseUsage(u) if usage["classid"] == oldusage["classid"]: print(f"!!!!!!班级 {usage['classid']} 在题号为 {id} 的题目处已有使用记录, 在pending list中记录") oldinfo = [v for v in prodict[id][field] if usage['classid'] in v]