mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
don't check if already a leech, since we don't trigger every time
This commit is contained in:
parent
ef4d9a42f8
commit
3839c635a0
1 changed files with 1 additions and 2 deletions
|
@ -461,7 +461,6 @@ Please do not file a bug report with Anki.<br>""")
|
|||
def handleLeech(self):
|
||||
self.deck.refresh()
|
||||
tags = self.currentCard.fact.tags
|
||||
wasLeech = "Leech" in tags
|
||||
tags = addTags("Leech", tags)
|
||||
self.currentCard.fact.tags = canonifyTags(tags)
|
||||
self.currentCard.fact.setModified(textChanged=True)
|
||||
|
@ -470,7 +469,7 @@ Please do not file a bug report with Anki.<br>""")
|
|||
<b>%s</b>... is a <a href="http://ichi2.net/anki/wiki/Leeches">leech</a>.""")
|
||||
% stripHTML(stripSounds(self.currentCard.question)).\
|
||||
replace("\n", " ")[0:30])
|
||||
if self.deck.getBool('suspendLeeches') and not wasLeech:
|
||||
if self.deck.getBool('suspendLeeches'):
|
||||
self.deck.suspendCards([self.currentCard.id])
|
||||
txt += _(" It has been suspended.")
|
||||
self.deck.refresh()
|
||||
|
|
Loading…
Reference in a new issue