|
@@ -398,8 +398,8 @@ class RecipeEditor(FocusWidget):
|
|
self.notices[product] = set()
|
|
self.notices[product] = set()
|
|
self.notices[product].add(f"Product '{product}' not found in list of ingredients")
|
|
self.notices[product].add(f"Product '{product}' not found in list of ingredients")
|
|
for ingredient in set(ingredients) - products:
|
|
for ingredient in set(ingredients) - products:
|
|
- if product not in self.notices:
|
|
|
|
- self.notices[product] = set()
|
|
|
|
|
|
+ if ingredient not in self.notices:
|
|
|
|
+ self.notices[ingredient] = set()
|
|
self.notices[ingredient].add(f"Ingredient '{ingredient}' is not used")
|
|
self.notices[ingredient].add(f"Ingredient '{ingredient}' is not used")
|
|
if len(set(ingredients)) != len(ingredients):
|
|
if len(set(ingredients)) != len(ingredients):
|
|
self.notices[None].add("Some ingredients listed more than once")
|
|
self.notices[None].add("Some ingredients listed more than once")
|