mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
fix inverted cmp in leech handler
This commit is contained in:
parent
f6b620f9ed
commit
491596096a
1 changed files with 1 additions and 1 deletions
|
@ -834,7 +834,7 @@ did = ?, queue = %s, due = ?, mod = ?, usn = ? where id = ?""" % queue, data)
|
|||
if not lf:
|
||||
return
|
||||
# if over threshold or every half threshold reps after that
|
||||
if (lf >= card.lapses and
|
||||
if (card.lapses >= lf and
|
||||
(card.lapses-lf) % (max(lf/2, 1)) == 0):
|
||||
# add a leech tag
|
||||
f = card.note()
|
||||
|
|
Loading…
Reference in a new issue