From 56edea8f8f827d92ca45cc5ba4c902e29554475d Mon Sep 17 00:00:00 2001 From: daichi Date: Wed, 3 Nov 2021 21:42:22 +0900 Subject: [PATCH 1/2] feature: annotation sorting --- fastlabel/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fastlabel/__init__.py b/fastlabel/__init__.py index 3ed47c3..76df58f 100644 --- a/fastlabel/__init__.py +++ b/fastlabel/__init__.py @@ -1276,6 +1276,7 @@ def create_annotation( value: str, title: str, color: str = None, + order: int = None, attributes: list = [] ) -> str: """ @@ -1297,6 +1298,8 @@ def create_annotation( } if color: payload["color"] = color + if order: + payload["order"] = order if attributes: payload["attributes"] = attributes return self.api.post_request(endpoint, payload=payload) @@ -1322,6 +1325,7 @@ def update_annotation( value: str = None, title: str = None, color: str = None, + order: int = None, attributes: list = [] ) -> str: """ @@ -1341,6 +1345,8 @@ def update_annotation( payload["title"] = title if color: payload["color"] = color + if order: + payload["order"] = order if attributes: payload["attributes"] = attributes return self.api.put_request(endpoint, payload=payload) From 6a0772ffab6e0cdb58ab5f37de6cae84e427f858 Mon Sep 17 00:00:00 2001 From: daichi Date: Sun, 14 Nov 2021 16:44:52 +0900 Subject: [PATCH 2/2] fix version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3bd7ebc..73fb9ab 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setuptools.setup( name="fastlabel", - version="0.11.6", + version="0.11.7", author="eisuke-ueta", author_email="eisuke.ueta@fastlabel.ai", description="The official Python SDK for FastLabel API, the Data Platform for AI",