From 4574dfe808f9472a1c3fa5677c969783808de576 Mon Sep 17 00:00:00 2001 From: anegawa-j Date: Wed, 29 Mar 2023 16:25:38 +0900 Subject: [PATCH] fixed to limit 100 --- fastlabel/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fastlabel/__init__.py b/fastlabel/__init__.py index 5a98095..b2927b3 100644 --- a/fastlabel/__init__.py +++ b/fastlabel/__init__.py @@ -705,11 +705,11 @@ def get_sequential_pcd_tasks( tags: list = None, task_name: str = None, offset: int = None, - limit: int = 100, + limit: int = 10, ) -> list: """ Returns a list of Sequential PCD tasks. - Returns up to 1000 at a time, to get more, + 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). @@ -723,9 +723,9 @@ def get_sequential_pcd_tasks( offset is the starting position number to fetch (Optional). limit is the max number to fetch (Optional). """ - if limit > 1000: + if limit > 10: raise FastLabelInvalidException( - "Limit must be less than or equal to 1000.", 422 + "Limit must be less than or equal to 10.", 422 ) endpoint = "tasks/sequential-pcd" params = {"project": project}