Forgot to round average as well
parent
4570f1416a
commit
76e6084b5b
|
@ -37,8 +37,8 @@ def overview_data():
|
||||||
|
|
||||||
# Averages
|
# Averages
|
||||||
data['average'] = {
|
data['average'] = {
|
||||||
'age': sum([application.age for application in Application.objects.all()]) /
|
'age': round(sum([application.age for application in Application.objects.all()]) /
|
||||||
data['total']['application']['all'] if data['total']['application']['all'] != 0 else 1
|
data['total']['application']['all'] if data['total']['application']['all'] != 0 else 1, 2)
|
||||||
}
|
}
|
||||||
|
|
||||||
# Ratios
|
# Ratios
|
||||||
|
|
Loading…
Reference in New Issue