Fix errors
This commit is contained in:
parent
ba33a05f66
commit
30a5d05362
2 changed files with 2 additions and 5 deletions
|
@ -7,8 +7,8 @@
|
||||||
Over
|
Over
|
||||||
<strong>{{ data.amount.orders }}</strong> orders,
|
<strong>{{ data.amount.orders }}</strong> orders,
|
||||||
<strong>{{ data.amount.users }}</strong> users have ordered
|
<strong>{{ data.amount.users }}</strong> users have ordered
|
||||||
<strong>{{ data.amount.orderitem }}</strong> items in
|
<strong>{{ data.amount.orderitems }}</strong> items in
|
||||||
<strong>{{ data.amount.location }}</strong> locations.
|
<strong>{{ data.amount.locations }}</strong> locations.
|
||||||
</h5>
|
</h5>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
|
@ -13,9 +13,6 @@ def stats():
|
||||||
'users': FatUser.amount(),
|
'users': FatUser.amount(),
|
||||||
'orderitems': FatOrderItem.amount(),
|
'orderitems': FatOrderItem.amount(),
|
||||||
'products': FatProduct.amount(),
|
'products': FatProduct.amount(),
|
||||||
},
|
|
||||||
'top4': {
|
|
||||||
'products': FatProduct.top4()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return render_template('stats.html', data=data)
|
return render_template('stats.html', data=data)
|
||||||
|
|
Loading…
Reference in a new issue