5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-01 22:36:08 +00:00

fixup! fixup! simplificar el código!!

This commit is contained in:
f 2022-04-30 19:44:02 -03:00
parent 6464f35625
commit 8a3c9a76a7

View file

@ -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)