Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -812,6 +812,10 @@ class NutrientCalculator:
|
|
812 |
'deficits': deficits,
|
813 |
'total_ppm': round(sum(self.actual.values()), 3)
|
814 |
}
|
|
|
|
|
|
|
|
|
815 |
|
816 |
@app.route('/calculation', methods=['POST'])
|
817 |
def handle_calculation():
|
|
|
812 |
'deficits': deficits,
|
813 |
'total_ppm': round(sum(self.actual.values()), 3)
|
814 |
}
|
815 |
+
# Запуск расчета
|
816 |
+
calculator = NutrientCalculator(INPUT_DATA)
|
817 |
+
results = calculator.calculate()
|
818 |
+
print(calculator.generate_report(results))
|
819 |
|
820 |
@app.route('/calculation', methods=['POST'])
|
821 |
def handle_calculation():
|