11041 return power percentage with 1 decimal place
This commit is contained in:
parent
fb407e9076
commit
826a1714c3
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue