Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ API is allowed to call 1000 times per 10 minutes. If you create/delete a large s
- Create a new task.

```python
task = client.create_task(
task_id = client.create_task(
project="YOUR_PROJECT_SLUG",
name="sample.jpg",
file_path="./sample.jpg"
Expand All @@ -46,7 +46,7 @@ task = client.create_task(
- Create a new task with pre-defined annotations. (Class should be configured on your project in advance)

```python
task = client.create_task(
task_id = client.create_task(
project="YOUR_PROJECT_SLUG",
name="sample.jpg",
file_path="./sample.jpg",
Expand Down Expand Up @@ -75,7 +75,7 @@ task = client.create_task(
- Update a single task status, tags, and annotations.

```python
task = client.update_task(
task_id = client.update_task(
task_id="YOUR_TASK_ID",
status="approved",
tags=["tag1", "tag2"],
Expand Down
4 changes: 2 additions & 2 deletions examples/create_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
]
}]

task = client.create_task(
task_id = client.create_task(
project=project,
name=name,
file_path=file_path,
annotations=annotations
)
pprint(task)
pprint(task_id)
8 changes: 4 additions & 4 deletions fastlabel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@ def get_tasks(
tags: list = [],
offset: int = None,
limit: int = 100,
) -> dict:
) -> list:
"""
Returns a list of tasks.

Returns up to 100 at a time, to get more, set task id of the last page passed back to startAfter param.
Returns up to 1000 at a time, to get more, set offset as the starting position to fetch.

project is slug of your project. (Required)
status can be 'registered', 'in_progress', 'completed', 'skipped', 'in_review', 'send_backed', 'approved', 'customer_in_review', 'customer_send_backed', 'customer_approved'. (Optional)
Expand Down Expand Up @@ -168,7 +168,7 @@ def create_task(
status: str = None,
annotations: list = [],
tags: list = [],
) -> dict:
) -> str:
"""
Create a single task.

Expand Down Expand Up @@ -199,7 +199,7 @@ def update_task(
status: str = None,
annotations: list = [],
tags: list = [],
) -> dict:
) -> str:
"""
Update a single task.

Expand Down