Merge where I left backend-frameworkification #2

Manually merged
bss merged 18 commits from backend-frameworkification into master 2021-04-24 15:36:23 -05:00
1 changed files with 2 additions and 0 deletions
Showing only changes of commit 665f56a430 - Show all commits

View File

@ -59,6 +59,8 @@ class PiLog(models.Model):
@property
def value(self):
"""Return this log entry's estimated value of pi."""
if self.total_count == 0:
return 0.0
return 4.0 * int(self.total_count_inside) / int(self.total_count)
@property