UPDATE
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user