mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
fix timeForNewCard(), revlog sncing, priority index del
This commit is contained in:
parent
b6bb03025f
commit
b9cf5ad85d
3 changed files with 3 additions and 3 deletions
|
@ -715,7 +715,7 @@ limit %s""" % (self.cramOrder, self.queueLimit)))
|
|||
if self.newCardSpacing == NEW_CARDS_FIRST:
|
||||
return True
|
||||
if self.newCardModulus:
|
||||
return self._dailyStats.reps % self.newCardModulus == 0
|
||||
return self.repsToday % self.newCardModulus == 0
|
||||
else:
|
||||
return False
|
||||
|
||||
|
|
|
@ -600,7 +600,7 @@ select * from revlog where time > :ls""",
|
|||
if not dlist:
|
||||
return
|
||||
self.deck.s.statements("""
|
||||
insert or ignore into revlog
|
||||
insert or ignore into revlog values
|
||||
(:time, :cardId, :ease, :rep, :lastInterval, :interval, :factor,
|
||||
:userTime, :flags)""",
|
||||
dlist)
|
||||
|
|
|
@ -242,7 +242,7 @@ min(thinkingTime, 60), 0 from reviewHistory""")
|
|||
# convert old ease0 into ease1
|
||||
deck.s.statement("update revlog set ease = 1 where ease = 0")
|
||||
# remove priority index
|
||||
deck.s.statement("drop index ix_cards_priority")
|
||||
deck.s.statement("drop index if exists ix_cards_priority")
|
||||
deck.version = 74
|
||||
deck.s.commit()
|
||||
|
||||
|
|
Loading…
Reference in a new issue