Skip to content

Commit 5596880

Browse files
authored
Merge pull request #20 from fastlabel/develop
Merge to main
2 parents 7f469d9 + 5ffa3a8 commit 5596880

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

fastlabel/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,18 +173,21 @@ def get_multi_image_tasks(
173173
status: str = None,
174174
tags: list = [],
175175
offset: int = None,
176-
limit: int = 100,
176+
limit: int = 10,
177177
) -> dict:
178178
"""
179179
Returns a list of tasks.
180-
Returns up to 1000 at a time, to get more, set offset as the starting position to fetch.
180+
Returns up to 10 at a time, to get more, set offset as the starting position to fetch.
181181
182182
project is slug of your project. (Required)
183183
status can be 'registered', 'in_progress', 'completed', 'skipped', 'in_review', 'send_backed', 'approved', 'customer_in_review', 'customer_send_backed', 'customer_approved'. (Optional)
184184
tags is a list of tag. (Optional)
185185
offset is the starting position number to fetch. (Optional)
186186
limit is the max number to fetch. (Optional)
187187
"""
188+
if limit > 10:
189+
raise FastLabelInvalidException(
190+
"Limit must be less than or equal to 10.", 422)
188191
endpoint = "tasks/multi/image"
189192
params = {"project": project}
190193
if status:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
setuptools.setup(
1010
name="fastlabel",
11-
version="0.4.1",
11+
version="0.4.2",
1212
author="eisuke-ueta",
1313
author_email="eisuke.ueta@fastlabel.ai",
1414
description="The official Python SDK for FastLabel API, the Data Platform for AI",

0 commit comments

Comments
 (0)