From 84699bf6c3a31d529b677f599922ed0d4a532a1c Mon Sep 17 00:00:00 2001 From: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> Date: Fri, 29 Nov 2024 16:47:34 +0100 Subject: [PATCH] fix args order and docstrings --- ayon_api/server_api.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ayon_api/server_api.py b/ayon_api/server_api.py index 918a82c35..5f1355079 100644 --- a/ayon_api/server_api.py +++ b/ayon_api/server_api.py @@ -1466,9 +1466,9 @@ def get_events( newer_than: Optional[str] = None, older_than: Optional[str] = None, fields: Optional[Iterable[str]] = None, - states: Optional[Iterable[str]] = None, limit: Optional[int] = None, order: Optional[SortOrder] = None, + states: Optional[Iterable[str]] = None, ): """Get events from server with filtering options. @@ -1492,12 +1492,12 @@ def get_events( iso datetime string. fields (Optional[Iterable[str]]): Fields that should be received for each event. - states (Optional[Iterable[str]]): DEPRECATED Filtering by states. - Use 'statuses' instead. limit (Optional[int]): Limit number of events to be fetched. - order (Optional[SortOrder]): Order activities in ascending + order (Optional[SortOrder]): Order events in ascending or descending order. It is recommended to set 'limit' - when used. + when used descending. + states (Optional[Iterable[str]]): DEPRECATED Filtering by states. + Use 'statuses' instead. Returns: Generator[dict[str, Any]]: Available events matching filters. @@ -1856,7 +1856,7 @@ def get_activities( limit (Optional[int]): Limit number of activities to be fetched. order (Optional[SortOrder]): Order activities in ascending or descending order. It is recommended to set 'limit' - when used. + when used descending. Returns: Generator[dict[str, Any]]: Available activities matching filters.