Update menu.py
Browse files
menu.py
CHANGED
|
@@ -160,7 +160,7 @@ def fetch_menu_data(selected_category, user_email):
|
|
| 160 |
instruction_counts[instruction] = instruction_counts.get(instruction, 0) + 1
|
| 161 |
|
| 162 |
# Get most common add-ons and instructions (top 3)
|
| 163 |
-
most_common_addons = sorted(addon_counts, key=addon_counts.get, reverse=True)
|
| 164 |
most_common_instructions = sorted(instruction_counts, key=instruction_counts.get, reverse=True)[:3]
|
| 165 |
print(f"Most common add-ons: {most_common_addons}")
|
| 166 |
print(f"Most common instructions: {most_common_instructions}")
|
|
|
|
| 160 |
instruction_counts[instruction] = instruction_counts.get(instruction, 0) + 1
|
| 161 |
|
| 162 |
# Get most common add-ons and instructions (top 3)
|
| 163 |
+
most_common_addons = sorted(addon_counts, key=addon_counts.get, reverse=True)
|
| 164 |
most_common_instructions = sorted(instruction_counts, key=instruction_counts.get, reverse=True)[:3]
|
| 165 |
print(f"Most common add-ons: {most_common_addons}")
|
| 166 |
print(f"Most common instructions: {most_common_instructions}")
|