From 92eb4e71d46b0b578b11632ab51b97a8c8186578 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 17 Jan 2014 14:30:40 +0900 Subject: [PATCH] ignore duplicates in cloze+type answer --- aqt/reviewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/reviewer.py b/aqt/reviewer.py index 19fa2f55a..eb74ecb13 100644 --- a/aqt/reviewer.py +++ b/aqt/reviewer.py @@ -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