Merge branch 'develop/report_PI' into 'master'

Update Pi display

See merge request cara/cara!144
This commit is contained in:
Philip James Elson 2021-03-09 10:55:53 +00:00
commit bf22611454

View file

@ -166,8 +166,10 @@ def readable_minutes(minutes: int) -> str:
def non_zero_percentage(percentage: int) -> str:
if percentage < 0.01:
return "<0.01%"
else:
elif percentage < 1:
return "{:0.2f}%".format(percentage)
else:
return "{:0.0f}%".format(percentage)
def manufacture_alternative_scenarios(form: FormData) -> typing.Dict[str, models.ExposureModel]: