Skip to content

Commit 6ba480b

Browse files
authored
Merge pull request #140 from fastlabel/enhancement/3697-limit-seq-pcd-get-tasks
[sequential_pcd][get_tasks]一度の取得上限を10に変更
2 parents 3eb4ef9 + 4574dfe commit 6ba480b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fastlabel/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -705,11 +705,11 @@ def get_sequential_pcd_tasks(
705705
tags: list = None,
706706
task_name: str = None,
707707
offset: int = None,
708-
limit: int = 100,
708+
limit: int = 10,
709709
) -> list:
710710
"""
711711
Returns a list of Sequential PCD tasks.
712-
Returns up to 1000 at a time, to get more,
712+
Returns up to 10 at a time, to get more,
713713
set offset as the starting position to fetch.
714714
715715
project is slug of your project (Required).
@@ -723,9 +723,9 @@ def get_sequential_pcd_tasks(
723723
offset is the starting position number to fetch (Optional).
724724
limit is the max number to fetch (Optional).
725725
"""
726-
if limit > 1000:
726+
if limit > 10:
727727
raise FastLabelInvalidException(
728-
"Limit must be less than or equal to 1000.", 422
728+
"Limit must be less than or equal to 10.", 422
729729
)
730730
endpoint = "tasks/sequential-pcd"
731731
params = {"project": project}

0 commit comments

Comments
 (0)