nagasurendra commited on
Commit
f62a0a9
·
verified ·
1 Parent(s): f209af3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -89,11 +89,10 @@ def order_history():
89
  except Exception as e:
90
  print(f"Error fetching order history: {str(e)}")
91
  return render_template("order_history.html", orders=[], error=str(e))
92
-
93
-
94
-
95
-
96
-
97
 
98
  @app.route("/signup", methods=["GET", "POST"])
99
  def signup():
 
89
  except Exception as e:
90
  print(f"Error fetching order history: {str(e)}")
91
  return render_template("order_history.html", orders=[], error=str(e))
92
+ @app.route("/logout")
93
+ def logout():
94
+ session.clear() # Clear the session
95
+ return redirect(url_for("login")) # Redirect to the login page
 
96
 
97
  @app.route("/signup", methods=["GET", "POST"])
98
  def signup():