From 53fbc9b3ee629d2afc006e7c26939d1f33236956 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 1 Dec 2010 02:54:21 +0900 Subject: [PATCH] if spacing is disabled, don't decrement counts --- anki/deck.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/anki/deck.py b/anki/deck.py index 10fda40e3..918ff7294 100644 --- a/anki/deck.py +++ b/anki/deck.py @@ -834,10 +834,13 @@ where factId = :fid and id != :id""", fid=card.factId, id=card.id) or 0 space = 0 space = space * spaceFactor * 86400.0 space = max(minSpacing, space) - space += time.time() + if space: + space += time.time() return space def _spaceCards(self, card, space): + if not space: + return # adjust counts for (type, count) in self.s.all(""" select type, count(type) from cards