fix randomizeCards() call

This commit is contained in:
Damien Elmes 2011-12-10 04:35:29 +09:00
parent 45c218f807
commit 1e48ce9b99

View file

@ -623,7 +623,7 @@ update cards set due = cast(
""", stamp=col.sched.dayCutoff, today=col.sched.today)
# possibly re-randomize
if col.models.randomNew():
col.sched.randomizeCards()
col.sched.randomizeCards(1)
# update insertion id
col.conf['nextPos'] = (
col.db.scalar("select max(id) from notes") or 0)+1