mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Separate tags / betweens
This commit is contained in:
parent
abe946296b
commit
f3d9e61639
1 changed files with 6 additions and 2 deletions
|
@ -28,9 +28,13 @@ class Admin::Metrics::Measure::TagServersMeasure < Admin::Metrics::Measure::Base
|
||||||
.reorder(nil)
|
.reorder(nil)
|
||||||
.joins(:tags, :account)
|
.joins(:tags, :account)
|
||||||
.where(
|
.where(
|
||||||
<<~SQL.squish, tag_id: tag.id, earliest_status_id: earliest_status_id, latest_status_id: latest_status_id
|
<<~SQL.squish, tag_id: tag.id
|
||||||
statuses_tags.tag_id = :tag_id
|
statuses_tags.tag_id = :tag_id
|
||||||
AND statuses.id BETWEEN :earliest_status_id AND :latest_status_id
|
SQL
|
||||||
|
)
|
||||||
|
.where(
|
||||||
|
<<~SQL.squish, earliest_status_id: earliest_status_id, latest_status_id: latest_status_id
|
||||||
|
statuses.id BETWEEN :earliest_status_id AND :latest_status_id
|
||||||
SQL
|
SQL
|
||||||
)
|
)
|
||||||
.where(daily_period(:statuses))
|
.where(daily_period(:statuses))
|
||||||
|
|
Loading…
Reference in a new issue