Commit 92ee2f16 authored by Arthur's avatar Arthur
Browse files

11041 return power percentage with 1 decimal place

parent fb407e90
......@@ -138,7 +138,8 @@ def percentage(x, y):
"""
if x is None or y is None:
return None
return round(x / y * 100)
return round(x / y * 100, 1)
@register.filter()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment