Skip to content

Commit

Permalink
fix args order and docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Nov 29, 2024
1 parent 38b4514 commit 84699bf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ayon_api/server_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 84699bf

Please sign in to comment.