We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df23175 commit 99edb8dCopy full SHA for 99edb8d
app/controllers/basil_controller.rb
@@ -217,7 +217,7 @@ def stats
217
@completed = BasilCommission.where.not(completed_at: nil).with_deleted
218
219
@average_wait_time = @completed.where('completed_at > ?', 24.hours.ago)
220
- .average(:cached_seconds_taken)
+ .average(:cached_seconds_taken) || 0
221
@seconds_over_time = @completed.where('completed_at > ?', 24.hours.ago)
222
.group_by { |c| ((c.cached_seconds_taken || 0) / 60).round }
223
.map { |minutes, list| [minutes, list.count] }
0 commit comments