nagasurendra commited on
Commit
cafc49b
·
verified ·
1 Parent(s): d9844b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -148,7 +148,11 @@ def logout():
148
 
149
  @app.route('/customdish')
150
  def customdish():
151
- return render_template('customdish.html')
 
 
 
 
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'])