mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
fix deck age being used instead of collection
https://anki.tenderapp.com/discussions/ankidesktop/41637-bug-in-statistics
This commit is contained in:
parent
e2bb5cd14a
commit
d5e48fdf65
1 changed files with 4 additions and 1 deletions
|
@ -1123,6 +1123,9 @@ $(function () {
|
|||
if by == "review":
|
||||
t = self.col.db.scalar("select id from revlog %s order by id limit 1" % lim)
|
||||
elif by == "add":
|
||||
if self.wholeCollection:
|
||||
lim = ""
|
||||
else:
|
||||
lim = "where did in %s" % ids2str(self.col.decks.active())
|
||||
t = self.col.db.scalar("select id from cards %s order by id limit 1" % lim)
|
||||
if not t:
|
||||
|
|
Loading…
Reference in a new issue