fixerd serving size parsing in property importer
This commit is contained in:
parent
0989a58af5
commit
4869f9596a
@ -231,7 +231,7 @@ def get_recipe_properties(space, property_data):
|
|||||||
'id': pt.id,
|
'id': pt.id,
|
||||||
'name': pt.name,
|
'name': pt.name,
|
||||||
},
|
},
|
||||||
'property_amount': parse_servings(property_data[properties[p]]) / float(property_data['servingSize']),
|
'property_amount': parse_servings(property_data[properties[p]]) / parse_servings(property_data['servingSize']),
|
||||||
})
|
})
|
||||||
|
|
||||||
return recipe_properties
|
return recipe_properties
|
||||||
|
Loading…
Reference in New Issue
Block a user