mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 21:22:40 +00:00
Start on tag fixes
This commit is contained in:
parent
de6760d5d7
commit
fe1ef3489a
1 changed files with 8 additions and 1 deletions
|
@ -2507,7 +2507,14 @@ class Database {
|
|||
SELECT
|
||||
id,name,coalesce(subscriptions,0) as subscriptions
|
||||
from arsse_tags
|
||||
left join (SELECT tag, sum(assigned) as subscriptions from arsse_tag_members group by tag) as tag_stats on tag_stats.tag = arsse_tags.id
|
||||
left join (
|
||||
SELECT
|
||||
tag,
|
||||
sum(assigned) as subscriptions
|
||||
from arsse_tag_members
|
||||
--join arsse_subscriptions on arsse_subscriptions.id = arsse_tag_members.subscription and arsse_subscriptions.deleted = 0
|
||||
group by tag
|
||||
) as tag_stats on tag_stats.tag = arsse_tags.id
|
||||
WHERE owner = ?
|
||||
) as tag_data
|
||||
where subscriptions >= ? order by name",
|
||||
|
|
Loading…
Reference in a new issue