mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-30 16:46:21 +00:00
Merge branch 'blazer' into panel.sutty.nl
This commit is contained in:
commit
d4f8845024
1 changed files with 6 additions and 0 deletions
|
@ -51,6 +51,12 @@ class StatsController < ApplicationController
|
|||
.group("dimensions->>'#{column}'")
|
||||
.sum(:value)
|
||||
.transform_values(&:to_i)
|
||||
.transform_values do |v|
|
||||
v * nodes
|
||||
end
|
||||
.sort_by do |_, v|
|
||||
v.last
|
||||
end.reverse.to_h
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue