Fix errors

This commit is contained in:
Wout Schellaert 2016-09-10 23:25:09 +02:00
parent ba33a05f66
commit 30a5d05362
2 changed files with 2 additions and 5 deletions

View file

@ -7,8 +7,8 @@
Over
<strong>{{ data.amount.orders }}</strong> orders,
<strong>{{ data.amount.users }}</strong> users have ordered
<strong>{{ data.amount.orderitem }}</strong> items in
<strong>{{ data.amount.location }}</strong> locations.
<strong>{{ data.amount.orderitems }}</strong> items in
<strong>{{ data.amount.locations }}</strong> locations.
</h5>
</div>
{% endblock %}

View file

@ -13,9 +13,6 @@ def stats():
'users': FatUser.amount(),
'orderitems': FatOrderItem.amount(),
'products': FatProduct.amount(),
},
'top4': {
'products': FatProduct.top4()
}
}
return render_template('stats.html', data=data)