Forgot to round average as well

reminder
Etzelia 2018-12-05 17:06:26 -06:00 committed by John Olheiser
parent 4570f1416a
commit 76e6084b5b
1 changed files with 2 additions and 2 deletions

View File

@ -37,8 +37,8 @@ def overview_data():
# Averages
data['average'] = {
'age': sum([application.age for application in Application.objects.all()]) /
data['total']['application']['all'] if data['total']['application']['all'] != 0 else 1
'age': round(sum([application.age for application in Application.objects.all()]) /
data['total']['application']['all'] if data['total']['application']['all'] != 0 else 1, 2)
}
# Ratios