mirror of
https://github.com/Freika/dawarich.git
synced 2026-05-24 23:48:28 -05:00
Remove unused method
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user