nagasurendra commited on
Commit
8509b21
·
verified ·
1 Parent(s): 0a50389

Update menu.py

Browse files
Files changed (1) hide show
  1. menu.py +4 -0
menu.py CHANGED
@@ -152,10 +152,14 @@ def menu():
152
  for instruction in instructions:
153
  if instruction:
154
  instruction_counts[instruction] = instruction_counts.get(instruction, 0) + 1
 
 
155
 
156
  # Get the most common add-ons, including spice levels
157
  most_common_addons = sorted(addon_counts, key=addon_counts.get, reverse=True)[:3]
158
  most_common_instructions = sorted(instruction_counts, key=instruction_counts.get, reverse=True)[:3]
 
 
159
 
160
  # Include most ordered spice level if it's not already in the top 3
161
  if not any(spice in most_common_addons for spice in spice_levels):
 
152
  for instruction in instructions:
153
  if instruction:
154
  instruction_counts[instruction] = instruction_counts.get(instruction, 0) + 1
155
+ # Print the cleaned add-ons and instructions to check what we're fetching
156
+ print(f"Add-ons fetched (cleaned): {addon_counts}")
157
 
158
  # Get the most common add-ons, including spice levels
159
  most_common_addons = sorted(addon_counts, key=addon_counts.get, reverse=True)[:3]
160
  most_common_instructions = sorted(instruction_counts, key=instruction_counts.get, reverse=True)[:3]
161
+ # Print to check the final most common add-ons and instructions
162
+ print(f"Most common add-ons (cleaned): {most_common_addons}")
163
 
164
  # Include most ordered spice level if it's not already in the top 3
165
  if not any(spice in most_common_addons for spice in spice_levels):