Browse Source

Do not show empty foods for amica menus

Toni Fadjukoff 6 years ago
parent
commit
f0f332eb97
1 changed files with 2 additions and 1 deletions
  1. 2 1
      amica.py

+ 2 - 1
amica.py View File

56
                 food = []
56
                 food = []
57
                 for meal in meals:
57
                 for meal in meals:
58
                     food.append(format_meal_allergies(meal))
58
                     food.append(format_meal_allergies(meal))
59
-                current_day_foods.append("\n".join(food))
59
+                if food:
60
+                    current_day_foods.append("\n".join(food))
60
         week_foods[week_day] = current_day_foods
61
         week_foods[week_day] = current_day_foods
61
     return week_foods
62
     return week_foods
62
 
63