fix: languages filter 0.0%
This commit is contained in:
parent
f1ed61c687
commit
223755a965
|
@ -14,6 +14,6 @@ module Repository::LanguagesPercentagable
|
||||||
hash.transform_values { |v|
|
hash.transform_values { |v|
|
||||||
ActionController::Base.helpers
|
ActionController::Base.helpers
|
||||||
.number_to_percentage((v * 100.0 / total_byte_size), precision: 1)
|
.number_to_percentage((v * 100.0 / total_byte_size), precision: 1)
|
||||||
}
|
}.select{|k,v| v != "0.0%"}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue