mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Remove unused method
This commit is contained in:
parent
0c904a6b84
commit
9803ccc6a8
2 changed files with 1 additions and 7 deletions
|
|
@ -39,11 +39,4 @@ class Stat < ApplicationRecord
|
||||||
def calculate_daily_distances(monthly_points)
|
def calculate_daily_distances(monthly_points)
|
||||||
Stats::DailyDistanceQuery.new(monthly_points, timespan).call
|
Stats::DailyDistanceQuery.new(monthly_points, timespan).call
|
||||||
end
|
end
|
||||||
|
|
||||||
def filter_points_for_day(points, day)
|
|
||||||
beginning_of_day = day.beginning_of_day.to_i
|
|
||||||
end_of_day = day.end_of_day.to_i
|
|
||||||
|
|
||||||
points.select { |p| p.timestamp.between?(beginning_of_day, end_of_day) }
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,7 @@ class Stats::CalculateMonth
|
||||||
.where(timestamp: start_timestamp..end_timestamp)
|
.where(timestamp: start_timestamp..end_timestamp)
|
||||||
.select(:city, :country)
|
.select(:city, :country)
|
||||||
.distinct
|
.distinct
|
||||||
|
|
||||||
CountriesAndCities.new(toponym_points).call
|
CountriesAndCities.new(toponym_points).call
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue