Browse Source

Cambio nomi di funzione.

master
Emiliano Vavassori 2 years ago
parent
commit
c72753d2d5
  1. 4
      app.py

4
app.py

@ -2,11 +2,11 @@ from flask import Flask, request, render_template
app = Flask(__name__)
@app.route('/')
def baseform():
def index():
return render_template('modulo.html')
@app.route('/area_rettangolo', methods=['POST'])
def saluta():
def rectarea():
area = int(request.form['base']) * int(request.form['altezza'])
return render_template('area.html', area_calcolata=area)

Loading…
Cancel
Save