diff --git a/app/templates/stats.html b/app/templates/stats.html index 454fefa..e8111c6 100644 --- a/app/templates/stats.html +++ b/app/templates/stats.html @@ -7,8 +7,8 @@ Over {{ data.amount.orders }} orders, {{ data.amount.users }} users have ordered - {{ data.amount.orderitem }} items in - {{ data.amount.location }} locations. + {{ data.amount.orderitems }} items in + {{ data.amount.locations }} locations. {% endblock %} \ No newline at end of file diff --git a/app/views/stats.py b/app/views/stats.py index 0a72969..80a90fb 100644 --- a/app/views/stats.py +++ b/app/views/stats.py @@ -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)