Ejemplo n.º 1
0
def index():
    form = RestaurantForm()

    if form.validate_on_submit():
        result = main(form.restaurant.data)
        return render_template('index.html', result=result)

    return render_template('index.html', form=form)
Ejemplo n.º 2
0
def api():
    return jsonify(proc.main(request.args.get('name', '')))