def get_stats(): total_by_manufacturer = Product.get_total_price_by_every_manufacturer() total_by_category = Product.get_total_price_by_every_category() total_by_month = Order.get_total_price_by_every_month() return render_template('stats.html', total_by_manufacturer=total_by_manufacturer, total_by_category=total_by_category, total_by_month=total_by_month)