Skip to content

Commit

Permalink
[events] parameter has changed for page_size it's limit now
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanBldy committed Dec 6, 2024
1 parent ffb9613 commit baae872
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gazu/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


def get_last_events(
page_size=20000,
limit=20000,
project=None,
after=None,
before=None,
Expand All @@ -29,7 +29,7 @@ def get_last_events(
Get last events that occured on the machine.
Args:
page_size (int): Number of events to retrieve.
limit (int): Number of events to retrieve.
project (dict/id): Get only events related to this project.
after (dict/id): Get only events occuring after given date.
before (dict/id): Get only events occuring before given date.
Expand All @@ -39,7 +39,7 @@ def get_last_events(
dict: Last events matching criterions.
"""
path = "/data/events/last"
params = {"page_size": page_size, "only_files": only_files}
params = {"limit": limit, "only_files": only_files}
if project is not None:
project = normalize_model_parameter(project)
params["project_id"] = project["id"]
Expand Down

0 comments on commit baae872

Please sign in to comment.