Beispiel #1
0
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)
Beispiel #2
0
def price():
    result = Log.price()
    if not result.success: abort(500, result.message)
    return jsonify(result.message)