5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-10-01 22:36:56 +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 :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)