Truncate real percentage to 1st decimal
This commit is contained in:
parent
2c499addfa
commit
e271653284
1 changed files with 1 additions and 1 deletions
|
@ -173,4 +173,4 @@ class Round(models.Model):
|
|||
.order_by("-date")
|
||||
.first()
|
||||
)
|
||||
return self.chosen_weight / theoretical_max.value * 100
|
||||
return int(self.chosen_weight / theoretical_max.value * 1000) / 10
|
||||
|
|
Loading…
Reference in a new issue