mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-09 16:18:00 -05:00
fixed property helper bug with non food ingredients
This commit is contained in:
@@ -39,6 +39,7 @@ class FoodPropertyHelper:
|
|||||||
uch = UnitConversionHelper(self.space)
|
uch = UnitConversionHelper(self.space)
|
||||||
|
|
||||||
for i in ingredients:
|
for i in ingredients:
|
||||||
|
if i.food is not None:
|
||||||
conversions = uch.get_conversions(i)
|
conversions = uch.get_conversions(i)
|
||||||
for pt in property_types:
|
for pt in property_types:
|
||||||
found_property = False
|
found_property = False
|
||||||
|
|||||||
Reference in New Issue
Block a user