ignore duplicates in cloze+type answer

This commit is contained in:
Damien Elmes 2014-01-17 14:30:40 +09:00
parent 14a2321408
commit 92eb4e71d4

View file

@ -434,7 +434,7 @@ Please run Tools>Empty Cards""")
return txt
matches = [noHint(txt) for txt in matches]
if len(matches) > 1:
txt = ", ".join(matches)
txt = ", ".join(list(set(matches)))
else:
txt = matches[0]
return txt