diff --git a/Lesson-4/Final-Project/finalproject.py b/Lesson-4/Final-Project/finalproject.py index 38de5ac..bb906de 100644 --- a/Lesson-4/Final-Project/finalproject.py +++ b/Lesson-4/Final-Project/finalproject.py @@ -75,6 +75,8 @@ def editRestaurant(restaurant_id): if request.method == 'POST': if request.form['name']: editedRestaurant.name = request.form['name'] + session.add(editedRestaurant) + session.commit() return redirect(url_for('showRestaurants')) else: return render_template(