mirror of
https://github.com/ankitects/anki.git
synced 2025-12-10 21: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
|
||||
mid,
|
||||
(
|
||||
select
|
||||
name
|
||||
from notetypes nt
|
||||
where
|
||||
nt.id = mid
|
||||
) as name,
|
||||
count(id)
|
||||
from notes
|
||||
nt.id,
|
||||
nt.name,
|
||||
count(n.id)
|
||||
from notetypes nt
|
||||
left join notes n on (n.mid = nt.id)
|
||||
group by
|
||||
mid
|
||||
nt.id
|
||||
order by
|
||||
name
|
||||
nt.name
|
||||
Loading…
Reference in a new issue