Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -887,7 +887,7 @@ class NutrientCalculator:
|
|
887 |
|
888 |
total_weight = sum(c['weight'] for c in candidates)
|
889 |
for candidate in candidates:
|
890 |
-
|
891 |
ppm_to_apply = needed * share
|
892 |
self._apply(candidate['name'], element, ppm_to_apply)
|
893 |
})
|
|
|
887 |
|
888 |
total_weight = sum(c['weight'] for c in candidates)
|
889 |
for candidate in candidates:
|
890 |
+
share = candidate['weight'] / total_weight
|
891 |
ppm_to_apply = needed * share
|
892 |
self._apply(candidate['name'], element, ppm_to_apply)
|
893 |
})
|