Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions cwms/turbines/turbines.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def get_project_turbines(office: str, project_id: str) -> Data:
endpoint = "projects/turbines"
params = {"office": office, "project-id": project_id}

response = api.get(endpoint=endpoint, params=params)
response = api.get(endpoint=endpoint, params=params, api_version=1)

return Data(response)

Expand All @@ -35,7 +35,7 @@ def get_project_turbine(office: str, name: str) -> Data:
"""
endpoint = f"projects/turbines/{name}"
params = {"office": office}
response = api.get(endpoint=endpoint, params=params)
response = api.get(endpoint=endpoint, params=params, api_version=1)
return Data(response)


Expand Down Expand Up @@ -79,7 +79,7 @@ def get_project_turbine_changes(
"start-time-inclusive": start_time_inclusive,
"end-time-inclusive": end_time_inclusive,
}
response = api.get(endpoint=endpoint, params=params)
response = api.get(endpoint=endpoint, params=params, api_version=1)
return Data(response)


Expand Down Expand Up @@ -121,7 +121,7 @@ def store_project_turbine(data: JSON, fail_if_exists: Optional[bool]) -> None:
params = {
"fail-if-exists": fail_if_exists,
}
return api.post(endpoint=endpoint, data=data, params=params)
return api.post(endpoint=endpoint, data=data, params=params, api_version=1)


def store_project_turbine_changes(
Expand Down Expand Up @@ -159,7 +159,7 @@ def store_project_turbine_changes(
)
endpoint = f"projects/{office}/{name}/turbine-changes"
params = {"override-protection": override_protection}
return api.post(endpoint=endpoint, data=data, params=params)
return api.post(endpoint=endpoint, data=data, params=params, api_version=1)


# ==========================================================================
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "cwms-python"

version = "0.5.4"
version = "0.5.5"

packages = [
{ include = "cwms" },
Expand Down