mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
Merge branch 'master' of github.com:dae/ankiqt
This commit is contained in:
commit
1d5ddc6157
1 changed files with 2 additions and 2 deletions
|
@ -233,8 +233,8 @@ body { margin: 1em; -webkit-user-select: none; }
|
||||||
if not deck['dyn']:
|
if not deck['dyn']:
|
||||||
dids = [did] + [r[1] for r in self.mw.col.decks.children(did)]
|
dids = [did] + [r[1] for r in self.mw.col.decks.children(did)]
|
||||||
cnt = self.mw.col.db.scalar(
|
cnt = self.mw.col.db.scalar(
|
||||||
"select count() from cards where did in %s" %
|
"select count() from cards where did in {0} or "
|
||||||
ids2str(dids))
|
"odid in {0}".format(ids2str(dids)))
|
||||||
if cnt:
|
if cnt:
|
||||||
extra = _(" It has %d cards.") % cnt
|
extra = _(" It has %d cards.") % cnt
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue