DmitrMakeev commited on
Commit
029cf3f
·
verified ·
1 Parent(s): 244354e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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():