修改批量收录新题的一个bug

This commit is contained in:
weiye.wang 2024-06-06 22:01:40 +08:00
parent a6e4976220
commit 6dbd676d3f
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class MyWindow_bdsl(QWidget,Ui_Form):
psrstring = "rep"+id+","
elif simrate > 0.5:
psrstring += id + ","
if psrstring[-1] == ",":
if len(psrstring) > 0 and psrstring[-1] == ",":
psrstring = psrstring[:-1]
if len(psrstring) > 0:
output += f"\\item [{psrstring}] {p}\n\n"