diff --git a/autogpt_platform/backend/backend/api/features/executions/review/review_routes_test.py b/autogpt_platform/backend/backend/api/features/executions/review/review_routes_test.py index 6d52a4a840..807e50fad2 100644 --- a/autogpt_platform/backend/backend/api/features/executions/review/review_routes_test.py +++ b/autogpt_platform/backend/backend/api/features/executions/review/review_routes_test.py @@ -1063,7 +1063,6 @@ def test_process_review_action_per_review_auto_approve_granularity( return review_map.get(node_exec_id) mock_get_reviews_for_user.side_effect = mock_get_review_by_id - # Mock process_all_reviews - return 3 approved reviews mock_process_all_reviews = mocker.patch( diff --git a/autogpt_platform/backend/backend/api/features/executions/review/routes.py b/autogpt_platform/backend/backend/api/features/executions/review/routes.py index 0d5c8545d9..3da5f8c7d9 100644 --- a/autogpt_platform/backend/backend/api/features/executions/review/routes.py +++ b/autogpt_platform/backend/backend/api/features/executions/review/routes.py @@ -208,9 +208,8 @@ async def process_review_action( # Only create auto-approval if: # 1. This review was approved # 2. The review requested auto-approval - if ( - review_result.status == ReviewStatus.APPROVED - and auto_approve_requests.get(node_exec_id, False) + if review_result.status == ReviewStatus.APPROVED and auto_approve_requests.get( + node_exec_id, False ): try: node_exec = await get_node_execution(node_exec_id) diff --git a/autogpt_platform/backend/backend/data/human_review.py b/autogpt_platform/backend/backend/data/human_review.py index eca597ca10..ff9844db50 100644 --- a/autogpt_platform/backend/backend/data/human_review.py +++ b/autogpt_platform/backend/backend/data/human_review.py @@ -393,9 +393,7 @@ async def update_review_processed_status(node_exec_id: str, processed: bool) -> ) -async def cancel_pending_reviews_for_execution( - graph_exec_id: str, user_id: str -) -> int: +async def cancel_pending_reviews_for_execution(graph_exec_id: str, user_id: str) -> int: """ Cancel all pending reviews for a graph execution (e.g., when execution is stopped).