mirror of
https://github.com/ankitects/anki.git
synced 2025-12-12 22:36:55 -05:00
fix use counts not including unused note types
This commit is contained in:
parent
a181d9aa02
commit
87cd119216
1 changed files with 7 additions and 12 deletions
|
|
@ -1,15 +1,10 @@
|
||||||
select
|
select
|
||||||
mid,
|
nt.id,
|
||||||
(
|
nt.name,
|
||||||
select
|
count(n.id)
|
||||||
name
|
from notetypes nt
|
||||||
from notetypes nt
|
left join notes n on (n.mid = nt.id)
|
||||||
where
|
|
||||||
nt.id = mid
|
|
||||||
) as name,
|
|
||||||
count(id)
|
|
||||||
from notes
|
|
||||||
group by
|
group by
|
||||||
mid
|
nt.id
|
||||||
order by
|
order by
|
||||||
name
|
nt.name
|
||||||
Loading…
Reference in a new issue