From 30a5d05362a950d3758858c688ed73d118506d1c Mon Sep 17 00:00:00 2001 From: Wout Schellaert Date: Sat, 10 Sep 2016 23:25:09 +0200 Subject: [PATCH] Fix errors --- app/templates/stats.html | 4 ++-- app/views/stats.py | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) 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)