def prices_root(): result = Log.price() if not result.success: flash(result.message, 'ERROR') return redirect(request.referrer) return render_template('port_prices.html', ports=result.message)
def price(): result = Log.price() if not result.success: abort(500, result.message) return jsonify(result.message)