mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
remove unused cramRev
This commit is contained in:
parent
c236bc8327
commit
56652c5066
2 changed files with 4 additions and 9 deletions
|
@ -38,7 +38,6 @@ defaultDynamicDeck = {
|
||||||
'delays': [1, 10],
|
'delays': [1, 10],
|
||||||
'separate': True,
|
'separate': True,
|
||||||
'fmult': 0,
|
'fmult': 0,
|
||||||
'cramRev': False,
|
|
||||||
'search': "",
|
'search': "",
|
||||||
'limit': 100,
|
'limit': 100,
|
||||||
'order': 0,
|
'order': 0,
|
||||||
|
|
|
@ -904,16 +904,12 @@ order by c.mod""" % ((self.dayCutoff-86400)*1000)
|
||||||
for c, id in enumerate(ids):
|
for c, id in enumerate(ids):
|
||||||
# start at -100000 so that reviews are all due
|
# start at -100000 so that reviews are all due
|
||||||
data.append((did, -100000+c, t, u, id))
|
data.append((did, -100000+c, t, u, id))
|
||||||
if deck['cramRev']:
|
# due reviews stay in the review queue. careful: can't use
|
||||||
# everything in the new queue
|
# "odid or did", as sqlite converts to boolean
|
||||||
queue = "0"
|
queue = """
|
||||||
else:
|
|
||||||
# due reviews stay in the review queue. careful: can't use
|
|
||||||
# "odid or did", as sqlite converts to boolean
|
|
||||||
queue = """
|
|
||||||
(case when type=2 and (case when odue then odue <= %d else due <= %d end)
|
(case when type=2 and (case when odue then odue <= %d else due <= %d end)
|
||||||
then 2 else 0 end)"""
|
then 2 else 0 end)"""
|
||||||
queue %= (self.today, self.today)
|
queue %= (self.today, self.today)
|
||||||
self.col.db.executemany("""
|
self.col.db.executemany("""
|
||||||
update cards set
|
update cards set
|
||||||
odid = (case when odid then odid else did end),
|
odid = (case when odid then odid else did end),
|
||||||
|
|
Loading…
Reference in a new issue