nagasurendra commited on
Commit
ec58fa0
·
verified ·
1 Parent(s): 757e41a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
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: