1
1
Fork 0
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:
J. King 2023-02-26 22:44:56 -05:00
parent de6760d5d7
commit fe1ef3489a

View file

@ -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",