Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -911,8 +911,8 @@ def handle_calculation():
|
|
911 |
# Фиктивные удобрения
|
912 |
if "fertilizerConstants" in data:
|
913 |
response["fertilizers"] = {
|
914 |
-
|
915 |
-
|
916 |
}
|
917 |
|
918 |
except Exception as e:
|
|
|
911 |
# Фиктивные удобрения
|
912 |
if "fertilizerConstants" in data:
|
913 |
response["fertilizers"] = {
|
914 |
+
name: {"граммы": round(required_ppm / content, 3)}
|
915 |
+
for name, content in data["fertilizerConstants"].items()
|
916 |
}
|
917 |
|
918 |
except Exception as e:
|