mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
if spacing is disabled, don't decrement counts
This commit is contained in:
parent
bb901dfa16
commit
53fbc9b3ee
1 changed files with 4 additions and 1 deletions
|
@ -834,10 +834,13 @@ where factId = :fid and id != :id""", fid=card.factId, id=card.id) or 0
|
||||||
space = 0
|
space = 0
|
||||||
space = space * spaceFactor * 86400.0
|
space = space * spaceFactor * 86400.0
|
||||||
space = max(minSpacing, space)
|
space = max(minSpacing, space)
|
||||||
space += time.time()
|
if space:
|
||||||
|
space += time.time()
|
||||||
return space
|
return space
|
||||||
|
|
||||||
def _spaceCards(self, card, space):
|
def _spaceCards(self, card, space):
|
||||||
|
if not space:
|
||||||
|
return
|
||||||
# adjust counts
|
# adjust counts
|
||||||
for (type, count) in self.s.all("""
|
for (type, count) in self.s.all("""
|
||||||
select type, count(type) from cards
|
select type, count(type) from cards
|
||||||
|
|
Loading…
Reference in a new issue