mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2025-01-09 17:32:40 +00:00
Remove references to marks table in label routines
This commit is contained in:
parent
212d842e05
commit
30dbd850e3
1 changed files with 6 additions and 6 deletions
|
@ -2210,9 +2210,9 @@ class Database {
|
||||||
label,
|
label,
|
||||||
sum(hidden) as hidden,
|
sum(hidden) as hidden,
|
||||||
sum(case when \"read\" = 1 and hidden = 0 then 1 else 0 end) as marked
|
sum(case when \"read\" = 1 and hidden = 0 then 1 else 0 end) as marked
|
||||||
from arsse_marks
|
from arsse_articles
|
||||||
join arsse_subscriptions on arsse_subscriptions.id = arsse_marks.subscription
|
join arsse_subscriptions on arsse_subscriptions.id = arsse_articles.subscription
|
||||||
join arsse_label_members on arsse_label_members.article = arsse_marks.article
|
join arsse_label_members on arsse_label_members.article = arsse_articles.id
|
||||||
where arsse_subscriptions.owner = ?
|
where arsse_subscriptions.owner = ?
|
||||||
group by label
|
group by label
|
||||||
) as mark_stats on mark_stats.label = arsse_labels.id
|
) as mark_stats on mark_stats.label = arsse_labels.id
|
||||||
|
@ -2274,9 +2274,9 @@ class Database {
|
||||||
label,
|
label,
|
||||||
sum(hidden) as hidden,
|
sum(hidden) as hidden,
|
||||||
sum(case when \"read\" = 1 and hidden = 0 then 1 else 0 end) as marked
|
sum(case when \"read\" = 1 and hidden = 0 then 1 else 0 end) as marked
|
||||||
from arsse_marks
|
from arsse_articles
|
||||||
join arsse_subscriptions on arsse_subscriptions.id = arsse_marks.subscription
|
join arsse_subscriptions on arsse_subscriptions.id = arsse_articles.subscription
|
||||||
join arsse_label_members on arsse_label_members.article = arsse_marks.article
|
join arsse_label_members on arsse_label_members.article = arsse_articles.id
|
||||||
where arsse_subscriptions.owner = ?
|
where arsse_subscriptions.owner = ?
|
||||||
group by label
|
group by label
|
||||||
) as mark_stats on mark_stats.label = arsse_labels.id
|
) as mark_stats on mark_stats.label = arsse_labels.id
|
||||||
|
|
Loading…
Reference in a new issue