DmitrMakeev commited on
Commit
ddb54ce
·
verified ·
1 Parent(s): e04f7e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -5
app.py CHANGED
@@ -692,7 +692,6 @@ def nutri_call():
692
 
693
 
694
 
695
- from tabulate import tabulate
696
  # Список всех питательных веществ
697
  nutrients_stencil = [
698
  'N (NO3-)', 'N (NH4+)', 'P', 'K', 'Mg', 'Ca', 'S',
@@ -925,12 +924,9 @@ class NutrientCalculator:
925
  self.results[fert_name]['граммы'] += amount
926
  self.results[fert_name]['миллиграммы'] += int(amount * 1000)
927
 
928
- print(f"Добавлено удобрение: {fert_name}, количество: {amount:.2f} г")
929
-
930
  for i, nutrient in enumerate(nutrients_stencil):
931
  added_ppm = scaled_composition.vector[i] * 1000 / self.volume
932
  self.actual_profile[nutrient] += added_ppm
933
- print(f" {nutrient}: +{added_ppm:.2f} ppm")
934
 
935
  def _remove_fertilizer(self, fert_name, amount):
936
  """Удаляет указанное количество удобрения"""
@@ -1019,7 +1015,6 @@ else:
1019
 
1020
 
1021
 
1022
-
1023
  @app.route('/calculation', methods=['POST'])
1024
  def handle_calculation():
1025
  try:
 
692
 
693
 
694
 
 
695
  # Список всех питательных веществ
696
  nutrients_stencil = [
697
  'N (NO3-)', 'N (NH4+)', 'P', 'K', 'Mg', 'Ca', 'S',
 
924
  self.results[fert_name]['граммы'] += amount
925
  self.results[fert_name]['миллиграммы'] += int(amount * 1000)
926
 
 
 
927
  for i, nutrient in enumerate(nutrients_stencil):
928
  added_ppm = scaled_composition.vector[i] * 1000 / self.volume
929
  self.actual_profile[nutrient] += added_ppm
 
930
 
931
  def _remove_fertilizer(self, fert_name, amount):
932
  """Удаляет указанное количество удобрения"""
 
1015
 
1016
 
1017
 
 
1018
  @app.route('/calculation', methods=['POST'])
1019
  def handle_calculation():
1020
  try: