fix: languages filter 0.0%

This commit is contained in:
vilet.yy 2021-03-19 18:36:55 +08:00
parent f1ed61c687
commit 223755a965
1 changed files with 1 additions and 1 deletions

View File

@ -14,6 +14,6 @@ module Repository::LanguagesPercentagable
hash.transform_values { |v|
ActionController::Base.helpers
.number_to_percentage((v * 100.0 / total_byte_size), precision: 1)
}
}.select{|k,v| v != "0.0%"}
end
end