This commit is contained in:
2026-04-26 01:15:38 +03:30
parent ec90642482
commit 0f36f98513
13 changed files with 1684 additions and 357 deletions
+3 -1
View File
@@ -99,7 +99,9 @@ class FertilizationRecommendView(APIView):
status=status.HTTP_500_INTERNAL_SERVER_ERROR,
)
# Public API exposes only the final farmer-facing recommendation object.
final_result = {"sections": result.get("sections", [])}
return Response(
{"code": 200, "msg": "success", "data": result},
{"code": 200, "msg": "success", "data": final_result},
status=status.HTTP_200_OK,
)