mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-23 06:44:57 +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
|
SELECT
|
||||||
id,name,coalesce(subscriptions,0) as subscriptions
|
id,name,coalesce(subscriptions,0) as subscriptions
|
||||||
from arsse_tags
|
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 = ?
|
WHERE owner = ?
|
||||||
) as tag_data
|
) as tag_data
|
||||||
where subscriptions >= ? order by name",
|
where subscriptions >= ? order by name",
|
||||||
|
|
Loading…
Reference in a new issue