From 912a49a2e31de0e3d225c6a8bb5667dc35dda4c3 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 16 Jan 2020 18:08:52 +1000 Subject: [PATCH] fix empty cloze message not appearing --- pylib/anki/collection.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pylib/anki/collection.py b/pylib/anki/collection.py index 40d1a501e..beeb4f7a3 100644 --- a/pylib/anki/collection.py +++ b/pylib/anki/collection.py @@ -686,12 +686,12 @@ where c.nid = n.id and c.id in %s group by nid""" ret[type], type, fields, model, data, self ) - # empty cloze? - if type == "q" and model["type"] == MODEL_CLOZE: - if not self.models._availClozeOrds(model, data[6], False): - ret["q"] += "

" + _( - "Please edit this note and add some cloze deletions. (%s)" - ) % ("%s" % (HELP_SITE, _("help"))) + # empty cloze? + if type == "q" and model["type"] == MODEL_CLOZE: + if not self.models._availClozeOrds(model, data[6], False): + ret["q"] += "

" + _( + "Please edit this note and add some cloze deletions. (%s)" + ) % ("%s" % (HELP_SITE, _("help"))) return ret