From 3f69e07ac1fd3b684290a7add2df78da7e1052b5 Mon Sep 17 00:00:00 2001 From: "weiye.wang" Date: Mon, 18 Mar 2024 21:52:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E4=B8=AA=E7=AD=94?= =?UTF-8?q?=E6=A1=88=E8=93=9D=E8=89=B2=E6=94=B9=E7=BA=A2=E8=89=B2=E4=B8=AD?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 工具v2/database_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/工具v2/database_tools.py b/工具v2/database_tools.py index 65240ce9..5b5320a9 100644 --- a/工具v2/database_tools.py +++ b/工具v2/database_tools.py @@ -2157,7 +2157,7 @@ def PaintRedAnswers(string,prodict): #将prodict中已有的答案标红色 if new_ans == raw_ans: sub_string = raw_string.replace("textcolor{blue}","textcolor{red}") output = output.replace(raw_string,sub_string) - elif raw_ans == "": + elif raw_ans == "" and new_ans != "暂无答案": print(f"{id} 已有答案, 请运行提取答案控件以获取新录入的答案") elif new_ans != "暂无答案": print(f"{id} 新答案 {new_ans} 和原答案 {raw_ans} 有所不同, 请仔细检查")