mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12: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.mod = intTime()
|
||||||
self.usn = self.col.usn()
|
self.usn = self.col.usn()
|
||||||
# bug check
|
# 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()
|
warn()
|
||||||
assert self.due < 4294967296
|
assert self.due < 4294967296
|
||||||
self.col.db.execute(
|
self.col.db.execute(
|
||||||
|
@ -111,7 +111,7 @@ insert or replace into cards values
|
||||||
self.mod = intTime()
|
self.mod = intTime()
|
||||||
self.usn = self.col.usn()
|
self.usn = self.col.usn()
|
||||||
# bug checks
|
# 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()
|
warn()
|
||||||
assert self.due < 4294967296
|
assert self.due < 4294967296
|
||||||
self.col.db.execute(
|
self.col.db.execute(
|
||||||
|
|
Loading…
Reference in a new issue