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

View file

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