Rammohan0504 nagasurendra commited on
Commit
0717ab7
·
verified ·
1 Parent(s): 5ca9b50

Update app.py (#4)

Browse files

- Update app.py (c3e5b86cee0df90dabde969d658bc55ab6685396)


Co-authored-by: Surendra <[email protected]>

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1175,7 +1175,7 @@ def checkout():
1175
  if not customer_id:
1176
  print("Customer record not found")
1177
  return jsonify({"success": False, "message": "Customer record not found in Salesforce"})
1178
-
1179
  # Store order data
1180
  order_data = {
1181
  "Customer_Name__c": user_id,
 
1175
  if not customer_id:
1176
  print("Customer record not found")
1177
  return jsonify({"success": False, "message": "Customer record not found in Salesforce"})
1178
+ table_number = table_number if table_number != 'null' else None # Ensure 'null' string is replaced with None
1179
  # Store order data
1180
  order_data = {
1181
  "Customer_Name__c": user_id,