修改一个答案蓝色改红色中的bug
This commit is contained in:
parent
4e134468a8
commit
3f69e07ac1
|
|
@ -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} 有所不同, 请仔细检查")
|
||||
|
|
|
|||
Reference in New Issue