Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -25,15 +25,18 @@ def signup(name, email, phone, password):
|
|
25 |
# Load Menu Items
|
26 |
def load_menu(preference):
|
27 |
items = fetch_menu_items()
|
|
|
28 |
filtered_items = [
|
29 |
-
item
|
30 |
-
for item in items
|
31 |
if preference == "All"
|
32 |
or (preference == "Veg" and item["Veg_NonVeg__c"] == "Veg")
|
33 |
or (preference == "Non-Veg" and item["Veg_NonVeg__c"] == "Non-Veg")
|
34 |
]
|
|
|
35 |
return filtered_items
|
36 |
|
|
|
|
|
37 |
# Add to Cart
|
38 |
def add_to_cart_interface(item_name, price):
|
39 |
add_to_cart(item_name, price)
|
|
|
25 |
# Load Menu Items
|
26 |
def load_menu(preference):
|
27 |
items = fetch_menu_items()
|
28 |
+
print(f"Fetched menu items: {items}") # Debugging output
|
29 |
filtered_items = [
|
30 |
+
item for item in items
|
|
|
31 |
if preference == "All"
|
32 |
or (preference == "Veg" and item["Veg_NonVeg__c"] == "Veg")
|
33 |
or (preference == "Non-Veg" and item["Veg_NonVeg__c"] == "Non-Veg")
|
34 |
]
|
35 |
+
print(f"Filtered menu items: {filtered_items}") # Debugging output
|
36 |
return filtered_items
|
37 |
|
38 |
+
|
39 |
+
|
40 |
# Add to Cart
|
41 |
def add_to_cart_interface(item_name, price):
|
42 |
add_to_cart(item_name, price)
|