DmitrMakeev commited on
Commit
8043ac4
·
verified ·
1 Parent(s): fb374f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -820,7 +820,15 @@ class NutrientCalculator:
820
  }
821
  return formatted
822
 
823
-
 
 
 
 
 
 
 
 
824
 
825
 
826
 
 
820
  }
821
  return formatted
822
 
823
+ def generate_report(self):
824
+ """Генерация отчета о питательном растворе"""
825
+ try:
826
+ actual_composition = Composition('Actual Profile', list(self.actual_profile.values()))
827
+ report = actual_composition.table(sparse=True, ref=self.target_composition)
828
+ return report
829
+ except Exception as e:
830
+ print(f"Ошибка при выводе отчёта: {str(e)}")
831
+ raise
832
 
833
 
834