From 8a3c9a76a72d2e384005f81af0013f3dad54e23e Mon Sep 17 00:00:00 2001 From: f Date: Sat, 30 Apr 2022 19:44:02 -0300 Subject: [PATCH] =?UTF-8?q?fixup!=20fixup!=20simplificar=20el=20c=C3=B3dig?= =?UTF-8?q?o!!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/jobs/uri_collection_job.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/jobs/uri_collection_job.rb b/app/jobs/uri_collection_job.rb index bab85d0d..ca755ca1 100644 --- a/app/jobs/uri_collection_job.rb +++ b/app/jobs/uri_collection_job.rb @@ -76,9 +76,9 @@ class UriCollectionJob < PeriodicJob # @param :dimensions [Hash] # @param :filter [Hash] # @return [nil] - def rollup(name:, beginning:, dimensions:, filter: nil) + def rollup(name:, dimensions:, filter: nil) AccessLog.where(**(filter || dimensions)) - .where('created_at >= ?', beginning) + .where('created_at >= ?', beginning_of_interval) .completed_requests .non_robots .group(*dimensions.keys)