mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -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)
|
||||
Stats::DailyDistanceQuery.new(monthly_points, timespan).call
|
||||
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
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ class Stats::CalculateMonth
|
|||
.where(timestamp: start_timestamp..end_timestamp)
|
||||
.select(:city, :country)
|
||||
.distinct
|
||||
|
||||
CountriesAndCities.new(toponym_points).call
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue