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,7 +1123,10 @@ $(function () {
|
||||||
if by == "review":
|
if by == "review":
|
||||||
t = self.col.db.scalar("select id from revlog %s order by id limit 1" % lim)
|
t = self.col.db.scalar("select id from revlog %s order by id limit 1" % lim)
|
||||||
elif by == "add":
|
elif by == "add":
|
||||||
lim = "where did in %s" % ids2str(self.col.decks.active())
|
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)
|
t = self.col.db.scalar("select id from cards %s order by id limit 1" % lim)
|
||||||
if not t:
|
if not t:
|
||||||
period = 1
|
period = 1
|
||||||
|
|
Loading…
Reference in a new issue