Merge branch 'Pi_fix' into 'master'

Pi display fix

See merge request cara/cara!131
This commit is contained in:
Andre Henriques 2021-01-15 09:55:17 +00:00
commit 61f32e25d3

View file

@ -135,7 +135,7 @@ def non_zero_percentage (percentage: int) -> str:
if percentage < 0.01:
return "<0.01%"
else:
return "{:0.0f}%".format(percentage)
return "{:0.2f}%".format(percentage)
def manufacture_alternative_scenarios(form: FormData) -> typing.Dict[str, models.ExposureModel]:
scenarios = {}