Skip to content

Commit c004da2

Browse files
authored
Merge pull request #11 from fastlabel/0.3.1
0.3.1
2 parents 7882ac7 + e179f31 commit c004da2

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ API is allowed to call 1000 times per 10 minutes. If you create/delete a large s
3636
- Create a new task.
3737

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

4848
```python
49-
task = client.create_task(
49+
task_id = client.create_task(
5050
project="YOUR_PROJECT_SLUG",
5151
name="sample.jpg",
5252
file_path="./sample.jpg",
@@ -75,7 +75,7 @@ task = client.create_task(
7575
- Update a single task status, tags, and annotations.
7676

7777
```python
78-
task = client.update_task(
78+
task_id = client.update_task(
7979
task_id="YOUR_TASK_ID",
8080
status="approved",
8181
tags=["tag1", "tag2"],

examples/create_task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
]
2525
}]
2626

27-
task = client.create_task(
27+
task_id = client.create_task(
2828
project=project,
2929
name=name,
3030
file_path=file_path,
3131
annotations=annotations
3232
)
33-
pprint(task)
33+
pprint(task_id)

fastlabel/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,11 @@ def get_tasks(
136136
tags: list = [],
137137
offset: int = None,
138138
limit: int = 100,
139-
) -> dict:
139+
) -> list:
140140
"""
141141
Returns a list of tasks.
142142
143-
Returns up to 100 at a time, to get more, set task id of the last page passed back to startAfter param.
143+
Returns up to 1000 at a time, to get more, set offset as the starting position to fetch.
144144
145145
project is slug of your project. (Required)
146146
status can be 'registered', 'in_progress', 'completed', 'skipped', 'in_review', 'send_backed', 'approved', 'customer_in_review', 'customer_send_backed', 'customer_approved'. (Optional)
@@ -168,7 +168,7 @@ def create_task(
168168
status: str = None,
169169
annotations: list = [],
170170
tags: list = [],
171-
) -> dict:
171+
) -> str:
172172
"""
173173
Create a single task.
174174
@@ -199,7 +199,7 @@ def update_task(
199199
status: str = None,
200200
annotations: list = [],
201201
tags: list = [],
202-
) -> dict:
202+
) -> str:
203203
"""
204204
Update a single task.
205205

0 commit comments

Comments
 (0)