Forgot to round average as well
parent
4570f1416a
commit
76e6084b5b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue