cleanup migrations, remove pint to speed up base conversion and calculate properties on converted ingredients

This commit is contained in:
vabene1111
2023-05-06 22:21:27 +02:00
parent 2cc7278865
commit 19f5da77b2
14 changed files with 249 additions and 322 deletions

View File

@@ -33,7 +33,7 @@ class FoodPropertyHelper:
uch = UnitConversionHelper(self.space)
for i in ingredients:
conversions = [i] # uch.get_conversions(i)
conversions = uch.get_conversions(i)
for pt in property_types:
found_property = False
for p in i.food.foodproperty_set.all():