mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
update children too
This commit is contained in:
parent
f00b7201b4
commit
745bbe1382
1 changed files with 4 additions and 1 deletions
|
@ -140,7 +140,10 @@ order by due""" % self._deckLimit(),
|
|||
|
||||
def extendLimits(self, new, rev):
|
||||
cur = self.col.decks.current()
|
||||
for g in [cur] + self.col.decks.parents(cur['id']):
|
||||
parents = self.col.decks.parents(cur['id'])
|
||||
children = [self.col.decks.get(did) for (name, did) in
|
||||
self.col.decks.children(cur['id'])]
|
||||
for g in [cur] + parents + children:
|
||||
# add
|
||||
g['newToday'][1] -= new
|
||||
g['revToday'][1] -= rev
|
||||
|
|
Loading…
Reference in a new issue