diff --git a/工具v2/database_tools.py b/工具v2/database_tools.py index 3e9bcc09..367ef7cf 100644 --- a/工具v2/database_tools.py +++ b/工具v2/database_tools.py @@ -255,6 +255,7 @@ def AddProblemstoDict(startingid,raworigin,problems,editor,indexdescription,thed problemindex += 1 else: problemindex = 1 + currentsuffix = suffix origin = raworigin + suffix + indexdescription.strip() + ("" if indexdescription.strip() == "" else str(problemindex)) newproblem = CreateNewProblem(pid,p.strip(),origin,thedict,GetDate() + "\t" + editor) if "blank" in p: