Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -246,6 +246,11 @@ def update_profile():
|
|
| 246 |
except Exception as e:
|
| 247 |
return jsonify({'status': 'error', 'message': str(e)})
|
| 248 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 249 |
@app.route("/order-history", methods=["GET"])
|
| 250 |
def order_history():
|
| 251 |
email = session.get('user_email') # Get logged-in user's email
|
|
@@ -308,8 +313,6 @@ def order_history():
|
|
| 308 |
|
| 309 |
|
| 310 |
|
| 311 |
-
|
| 312 |
-
|
| 313 |
app.permanent_session_lifetime = timedelta(minutes=5)
|
| 314 |
@app.before_request
|
| 315 |
def check_session_timeout():
|
|
|
|
| 246 |
except Exception as e:
|
| 247 |
return jsonify({'status': 'error', 'message': str(e)})
|
| 248 |
|
| 249 |
+
|
| 250 |
+
|
| 251 |
+
from datetime import datetime
|
| 252 |
+
import pytz # Library to handle timezone conversions
|
| 253 |
+
|
| 254 |
@app.route("/order-history", methods=["GET"])
|
| 255 |
def order_history():
|
| 256 |
email = session.get('user_email') # Get logged-in user's email
|
|
|
|
| 313 |
|
| 314 |
|
| 315 |
|
|
|
|
|
|
|
| 316 |
app.permanent_session_lifetime = timedelta(minutes=5)
|
| 317 |
@app.before_request
|
| 318 |
def check_session_timeout():
|