Skip to content

Commit

Permalink
fix query params
Browse files Browse the repository at this point in the history
our APIs have not been migrated to the new machine query param
  • Loading branch information
denizs committed Jan 27, 2024
1 parent 43add46 commit 466d85f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/enlyze/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def _get_variables(
return self._timeseries_api_client.get_paginated(
"variables",
timeseries_api_models.Variable,
params={"machine": str(machine_uuid)},
params={"appliance": str(machine_uuid)},
)

def get_variables(
Expand Down Expand Up @@ -186,7 +186,7 @@ def get_timeseries(
"timeseries",
timeseries_api_models.TimeseriesData,
params={
"machine": machine_uuid,
"appliance": machine_uuid,
"start_datetime": start.isoformat(),
"end_datetime": end.isoformat(),
"variables": ",".join(str(v.uuid) for v in variables),
Expand Down Expand Up @@ -266,7 +266,7 @@ def get_timeseries_with_resampling(
"timeseries",
timeseries_api_models.TimeseriesData,
params={
"machine": machine_uuid,
"appliance": machine_uuid,
"start_datetime": start.isoformat(),
"end_datetime": end.isoformat(),
"variables": ",".join(variables_query_parameter_list),
Expand Down Expand Up @@ -298,7 +298,7 @@ def _get_production_runs(
filters = {
"production_order": production_order,
"product": product,
"machine": machine,
"appliance": machine,
"start": start.isoformat() if start else None,
"end": end.isoformat() if end else None,
}
Expand Down

0 comments on commit 466d85f

Please sign in to comment.