mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
catch attempts to write queue=2 odue>0
This commit is contained in:
parent
0faad28715
commit
2df2231dc5
1 changed files with 4 additions and 0 deletions
|
@ -70,6 +70,8 @@ class Card(object):
|
|||
def flush(self):
|
||||
self.mod = intTime()
|
||||
self.usn = self.col.usn()
|
||||
# bug check
|
||||
assert not (self.queue == 2 and self.odue)
|
||||
self.col.db.execute(
|
||||
"""
|
||||
insert or replace into cards values
|
||||
|
@ -96,6 +98,8 @@ insert or replace into cards values
|
|||
def flushSched(self):
|
||||
self.mod = intTime()
|
||||
self.usn = self.col.usn()
|
||||
# bug check
|
||||
assert not (self.queue == 2 and self.odue)
|
||||
self.col.db.execute(
|
||||
"""update cards set
|
||||
mod=?, usn=?, type=?, queue=?, due=?, ivl=?, factor=?, reps=?,
|
||||
|
|
Loading…
Reference in a new issue