mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
warning shouldn't fire if in cram deck
This commit is contained in:
parent
fa5fca5941
commit
bde4655fa5
1 changed files with 2 additions and 2 deletions
|
@ -81,7 +81,7 @@ class Card(object):
|
|||
self.mod = intTime()
|
||||
self.usn = self.col.usn()
|
||||
# bug check
|
||||
if self.queue == 2 and self.odue:
|
||||
if self.queue == 2 and self.odue and not self.col.decks.isDyn(self.did):
|
||||
warn()
|
||||
assert self.due < 4294967296
|
||||
self.col.db.execute(
|
||||
|
@ -111,7 +111,7 @@ insert or replace into cards values
|
|||
self.mod = intTime()
|
||||
self.usn = self.col.usn()
|
||||
# bug checks
|
||||
if self.queue == 2 and self.odue:
|
||||
if self.queue == 2 and self.odue and not self.col.decks.isDyn(self.did):
|
||||
warn()
|
||||
assert self.due < 4294967296
|
||||
self.col.db.execute(
|
||||
|
|
Loading…
Reference in a new issue