Update app.py
Browse files
app.py
CHANGED
|
@@ -86,7 +86,6 @@ def generate_custom_dish():
|
|
| 86 |
if result['records']:
|
| 87 |
# Custom dish already exists
|
| 88 |
custom_dish = result['records'][0] # Get the existing custom dish record
|
| 89 |
-
custom_dish_id = custom_dish.get('Id') # Safe way to access 'Id'
|
| 90 |
total_ordered = custom_dish.get('Total_Ordered__c', 0) # Safe way to access 'Total_Ordered__c'
|
| 91 |
|
| 92 |
# Increment the Total_Ordered__c by 1
|
|
|
|
| 86 |
if result['records']:
|
| 87 |
# Custom dish already exists
|
| 88 |
custom_dish = result['records'][0] # Get the existing custom dish record
|
|
|
|
| 89 |
total_ordered = custom_dish.get('Total_Ordered__c', 0) # Safe way to access 'Total_Ordered__c'
|
| 90 |
|
| 91 |
# Increment the Total_Ordered__c by 1
|