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
7 changes: 5 additions & 2 deletions fastlabel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,18 +173,21 @@ def get_multi_image_tasks(
status: str = None,
tags: list = [],
offset: int = None,
limit: int = 100,
limit: int = 10,
) -> dict:
"""
Returns a list of tasks.
Returns up to 1000 at a time, to get more, set offset as the starting position to fetch.
Returns up to 10 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)
tags is a list of tag. (Optional)
offset is the starting position number to fetch. (Optional)
limit is the max number to fetch. (Optional)
"""
if limit > 10:
raise FastLabelInvalidException(
"Limit must be less than or equal to 10.", 422)
endpoint = "tasks/multi/image"
params = {"project": project}
if status:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name="fastlabel",
version="0.4.1",
version="0.4.2",
author="eisuke-ueta",
author_email="eisuke.ueta@fastlabel.ai",
description="The official Python SDK for FastLabel API, the Data Platform for AI",
Expand Down