Skip to content

Commit

Permalink
fix: changed default field for orgunits
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarfil committed Oct 10, 2024
1 parent 304ea45 commit a281f2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openhexa/toolbox/iaso/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def request(self, method: str, url: str, *args, **kwargs) -> requests.Response:

def authenticate(self) -> None:
"""
Authenticates with OpenHexa API with username and password.
Authenticates with IASO API with username and password.
Calling the endpoints to fetch authorization and refresh token.
Ensures that failures are handles with status management, both with or without SSL communication
"""
Expand Down
2 changes: 1 addition & 1 deletion openhexa/toolbox/iaso/iaso.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_org_units(self, page: int = 1, limit: int = 10, **kwargs) -> dict:
params = kwargs
params.update({"page": page, "limit": limit})
response = self.api_client.get("/api/orgunits", params=params)
return response.json().get("orgUnits")
return response.json().get("orgunits")

def get_form_instances(
self,
Expand Down

0 comments on commit a281f2f

Please sign in to comment.