def _handle_assign_response()

in bugbounty_gpt/handlers/submission_handler.py [0:0]


    def _handle_assign_response(self, response, user_id):
        """
        Handles the response after assigning a user to the submission.

        :param response: Response object from the assignment operation.
        :param user_id: ID of the user assigned.
        """
        if response.status_code == 200:
            logger.info(f"Submission {self.submission_id} assigned to user {user_id}.")
        else:
            logger.error(f"Unable to assign submission {self.submission_id} to user {user_id}. Status code: {response.status_code}")