From b3ab41dd565e0f913c02b3d8ff4e5b3559346a07 Mon Sep 17 00:00:00 2001 From: Jon Opray Date: Sat, 16 May 2026 08:00:12 -0700 Subject: [PATCH] Remove unused private_workforce --- examples/Surge SDK Example.ipynb | 1 - surge/projects.py | 6 ------ tests/test_projects.py | 2 -- 3 files changed, 9 deletions(-) diff --git a/examples/Surge SDK Example.ipynb b/examples/Surge SDK Example.ipynb index 0427545..143b71c 100644 --- a/examples/Surge SDK Example.ipynb +++ b/examples/Surge SDK Example.ipynb @@ -28,7 +28,6 @@ "project = surge.Project.create(\n", " name=\"Categorize this website\",\n", " payment_per_response=0.0,\n", - " private_workforce=True,\n", " num_workers_per_task=3,\n", " fields_template='{{company}}',\n", " instructions=\"You will be asked to categorize a company.\",\n", diff --git a/surge/projects.py b/surge/projects.py index e7a623e..7bcc483 100644 --- a/surge/projects.py +++ b/surge/projects.py @@ -82,7 +82,6 @@ def create( cls, name: str, payment_per_response: float = None, - private_workforce: bool = False, instructions: str = None, questions: list = None, qualifications_required: list = None, @@ -105,8 +104,6 @@ def create( name (str): Name of the project. payment_per_response (float, optional): How much a worker is paid (in US dollars) for an individual response. - private_workforce (bool, optional): - Indicates if the project's tasks will be done by a private workforce. instructions (str, optional): Instructions shown to workers describing how they should complete the task. questions (list, optional): An array of question objects describing the questions to be answered. qualifications_required (list, optional): Deprecated in favor of teams_required. @@ -148,7 +145,6 @@ def create( params = { "name": name, - "private_workforce": private_workforce, "instructions": instructions, "questions": questions_json, "qualifications_required": teams_required, @@ -262,8 +258,6 @@ def list_copies(self, api_key: str = None): def launch(self, api_key: str = None): """ Launches a project. - If work is being completed by the Surge workforce, you will be charged when the project launches - and your accounts neeeds to have sufficient funds before launching. Returns: project: new Project object with updated status diff --git a/tests/test_projects.py b/tests/test_projects.py index 6919256..26fdacb 100644 --- a/tests/test_projects.py +++ b/tests/test_projects.py @@ -79,8 +79,6 @@ def test_init_complete(): "interrater_agreement": { "What is this video?": 0.859154078549849 }, - "private_workforce": - False, "num_tasks_in_progress": 0, "payment_per_response":