mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 16:01:41 +00:00
fixup! fixup! simplificar el código!!
This commit is contained in:
parent
6464f35625
commit
8a3c9a76a7
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue