Update app.py
Browse files
app.py
CHANGED
|
@@ -148,7 +148,11 @@ def logout():
|
|
| 148 |
|
| 149 |
@app.route('/customdish')
|
| 150 |
def customdish():
|
| 151 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
|
| 153 |
|
| 154 |
@app.route('/get_ingredients', methods=['POST'])
|
|
|
|
| 148 |
|
| 149 |
@app.route('/customdish')
|
| 150 |
def customdish():
|
| 151 |
+
# Retrieve the user_name from the session
|
| 152 |
+
user_name = session.get('user_name', None)
|
| 153 |
+
# Pass user_name to the template if it exists, otherwise pass None
|
| 154 |
+
return render_template('customdish.html', user_name=user_name)
|
| 155 |
+
|
| 156 |
|
| 157 |
|
| 158 |
@app.route('/get_ingredients', methods=['POST'])
|