mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
return status of scheduler change
This commit is contained in:
parent
843e8f3b33
commit
4ff5b81134
1 changed files with 4 additions and 2 deletions
|
@ -681,9 +681,11 @@ select conf from gconf where id = (select gcid from groups where id = ?)""",
|
|||
##########################################################################
|
||||
|
||||
def stdSched(self):
|
||||
"True if scheduler changed."
|
||||
if self.sched.name != "std":
|
||||
self.sched.onClose()
|
||||
self.cleanup()
|
||||
self.sched = self._stdSched
|
||||
return True
|
||||
|
||||
def cramGroups(self, gids, order="mod desc", min=0, max=None):
|
||||
self.stdSched()
|
||||
|
|
Loading…
Reference in a new issue