Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
|