5
0
Fork 0
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:
f 2022-04-30 18:23:45 -03:00
commit d4f8845024

View file

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