Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -83,8 +83,8 @@ def generate_custom_dish():
|
|
83 |
non_veg_keywords = ["chicken", "mutton", "fish", "egg"]
|
84 |
|
85 |
category = "Veg" if any(word in description.lower() for word in veg_keywords) else \
|
86 |
-
"Non
|
87 |
-
"
|
88 |
|
89 |
# Create a new Custom_Dish__c record in Salesforce
|
90 |
custom_dish = {
|
@@ -92,7 +92,6 @@ def generate_custom_dish():
|
|
92 |
'Price__c': price,
|
93 |
'Description__c': description,
|
94 |
'Veg_NonVeg__c': category,
|
95 |
-
'Section__c': 'Custom Dishes',
|
96 |
'Total_Ordered__c': 0
|
97 |
}
|
98 |
|
|
|
83 |
non_veg_keywords = ["chicken", "mutton", "fish", "egg"]
|
84 |
|
85 |
category = "Veg" if any(word in description.lower() for word in veg_keywords) else \
|
86 |
+
"Non veg" if any(word in description.lower() for word in non_veg_keywords) else \
|
87 |
+
"both"
|
88 |
|
89 |
# Create a new Custom_Dish__c record in Salesforce
|
90 |
custom_dish = {
|
|
|
92 |
'Price__c': price,
|
93 |
'Description__c': description,
|
94 |
'Veg_NonVeg__c': category,
|
|
|
95 |
'Total_Ordered__c': 0
|
96 |
}
|
97 |
|