Skip to content

Commit

Permalink
fix: corrected query string for get_projects api
Browse files Browse the repository at this point in the history
  • Loading branch information
abhilash-kumar-nair committed Jun 13, 2023
1 parent eb600b9 commit 5dc383f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modelon/impact/client/sal/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, uri: URI, http_client: HTTPClient):
def projects_get(
self, vcs_info: bool, project_type: Optional[ProjectType] = None
) -> Dict[str, Any]:
prj_type = '&type=' + str(project_type) if project_type else ""
prj_type = '&type=' + project_type.value if project_type else ""
url = (self._base_uri / f"api/projects?vcsInfo={vcs_info}{prj_type}").resolve()
return self._http_client.get_json(url)

Expand Down

0 comments on commit 5dc383f

Please sign in to comment.