mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-30 07:16:22 +00:00
Merge branch 'blazer' into panel.sutty.nl
This commit is contained in:
commit
12a02c2e84
1 changed files with 12 additions and 16 deletions
|
@ -45,25 +45,21 @@ class UriCollectionJob < PeriodicJob
|
|||
# que indican las páginas y recursos descargables, el resto son
|
||||
# imágenes, CSS, JS y tipografías que no nos aportan números
|
||||
# significativos.
|
||||
uris.each do |uri|
|
||||
break if stop?
|
||||
name = 'host|uri'
|
||||
dimensions = { host: host, uri: uris }
|
||||
|
||||
name = 'host|uri'
|
||||
dimensions = { host: host, uri: uri }
|
||||
rollup(name, beginning, **dimensions)
|
||||
reduce_rollup(name, beginning, :sum, **dimensions)
|
||||
|
||||
rollup(name, beginning, **dimensions)
|
||||
reduce_rollup(name, beginning, :sum, **dimensions)
|
||||
columns.each_pair do |column, values|
|
||||
# Obtener orígenes de visitas por host
|
||||
values.each do |value|
|
||||
column_name = "host|uri|#{column}"
|
||||
column_dimensions = { host: host, uri: uris }
|
||||
column_dimensions[column] = value
|
||||
|
||||
columns.each_pair do |column, values|
|
||||
# Obtener orígenes de visitas por host
|
||||
values.each do |value|
|
||||
column_name = "host|uri|#{column}"
|
||||
column_dimensions = { host: host, uri: uri }
|
||||
column_dimensions[column] = value
|
||||
|
||||
rollup(column_name, beginning, **column_dimensions)
|
||||
reduce_rollup(column_name, beginning, :sum, **column_dimensions)
|
||||
end
|
||||
rollup(column_name, beginning, **column_dimensions)
|
||||
reduce_rollup(column_name, beginning, :sum, **column_dimensions)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue