From e35cbe79eb53f3dceb082865360e060c827a237c Mon Sep 17 00:00:00 2001 From: f Date: Sat, 9 Oct 2021 14:46:58 -0300 Subject: [PATCH] =?UTF-8?q?recolectar=20visitas=20a=20p=C3=A1ginas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/jobs/stat_collection_job.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/jobs/stat_collection_job.rb b/app/jobs/stat_collection_job.rb index c36d036c..04f62b8a 100644 --- a/app/jobs/stat_collection_job.rb +++ b/app/jobs/stat_collection_job.rb @@ -25,10 +25,10 @@ class StatCollectionJob < ApplicationJob options = { interval: interval } # Visitas por hostname - AccessLog.completed_requests.group(:host).rollup('host', **options) + AccessLog.completed_requests.non_robots.pages.group(:host).rollup('host', **options) - combined_columns **options - stats_by_site **options + combined_columns(**options) + stats_by_site(**options) end # Registrar que se hicieron todas las recolecciones @@ -42,7 +42,7 @@ class StatCollectionJob < ApplicationJob # CombinaciĆ³n de columnas def combined_columns(**options) COLUMNS.each do |column| - AccessLog.completed_requests.group(:host, column).rollup("hostname|#{column}", **options) + AccessLog.completed_requests.non_robots.pages.group(:host, column).rollup("host|#{column}", **options) end end