Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -68,6 +68,11 @@ def order_history():
|
|
| 68 |
|
| 69 |
orders = result.get("records", []) # Fetch all orders
|
| 70 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
return render_template("order_history.html", orders=orders)
|
| 72 |
|
| 73 |
except Exception as e:
|
|
|
|
| 68 |
|
| 69 |
orders = result.get("records", []) # Fetch all orders
|
| 70 |
|
| 71 |
+
# Remove image URL from order details
|
| 72 |
+
for order in orders:
|
| 73 |
+
order_details = order['Order_Details__c']
|
| 74 |
+
order['Order_Details__c'] = order_details.split(' | Image:')[0] # Remove the image part
|
| 75 |
+
|
| 76 |
return render_template("order_history.html", orders=orders)
|
| 77 |
|
| 78 |
except Exception as e:
|