From 2574f2e4f3a33c5dfa95e7523184ae381824b252 Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Thu, 24 Oct 2024 17:22:54 +0200 Subject: [PATCH] Remove comments --- app/services/stats/calculate.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/services/stats/calculate.rb b/app/services/stats/calculate.rb index b8c1a6ad..5f7c127f 100644 --- a/app/services/stats/calculate.rb +++ b/app/services/stats/calculate.rb @@ -8,17 +8,12 @@ class Stats::Calculate end def call - # 1. Get all points for given user and time period points = points(start_timestamp, end_timestamp) - - # 2. Split points by months points_by_month = points.group_by_month(&:recorded_at) - # 3. Calculate stats for each month points_by_month.each do |month, month_points| update_month_stats(month_points, month.year, month.month) end - # 4. Save stats rescue StandardError => e create_stats_update_failed_notification(user, e) end