5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-29 19:46:21 +00:00

Merge branch 'blazer' into panel.sutty.nl

This commit is contained in:
f 2022-04-30 19:44:27 -03:00
commit c644e57897

View file

@ -76,9 +76,9 @@ class UriCollectionJob < PeriodicJob
# @param :dimensions [Hash] # @param :dimensions [Hash]
# @param :filter [Hash] # @param :filter [Hash]
# @return [nil] # @return [nil]
def rollup(name:, beginning:, dimensions:, filter: nil) def rollup(name:, dimensions:, filter: nil)
AccessLog.where(**(filter || dimensions)) AccessLog.where(**(filter || dimensions))
.where('created_at >= ?', beginning) .where('created_at >= ?', beginning_of_interval)
.completed_requests .completed_requests
.non_robots .non_robots
.group(*dimensions.keys) .group(*dimensions.keys)