修改新题收录重复题号的一处重大bug
This commit is contained in:
parent
7e699a07ea
commit
e3dabadb15
|
|
@ -479,7 +479,7 @@ def GenerateNewProblemDataFromString2024(data): #从data字符串生成题目列
|
|||
content = content_raw.strip()
|
||||
if "rep" in meta:
|
||||
repid = meta["rep"]
|
||||
meta = {"rep": id}
|
||||
meta = {"rep": repid}
|
||||
subdata = data[:pos[0]] #开始寻找出处中缀
|
||||
suflist = re.findall(r"\n(\%\s{0,}[\S]+)\n",subdata)
|
||||
if len(suflist) == 0:
|
||||
|
|
|
|||
Reference in New Issue