11041 return power percentage with 1 decimal place

This commit is contained in:
Arthur 2022-12-01 08:52:16 -08:00 committed by Jeremy Stretch
parent fb407e9076
commit 826a1714c3

View File

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