Skip to content

add versions, environments and improve test coverage #125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
May 13, 2022
Merged
Prev Previous commit
Next Next commit
renamed builds to get_builds
  • Loading branch information
zeryx committed May 11, 2022
commit 7271f34f00d2bddda60a06ddca0ab2f7a23e7aff
2 changes: 1 addition & 1 deletion Algorithmia/CLI.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def list_languages(self, client):
return table

def getBuildLogs(self, user, algo, client):
api_response = client.algo(user + '/' + algo).builds()
api_response = client.algo(user + '/' + algo).get_builds()
return json.dumps(api_response['results'], indent=1)


Expand Down
2 changes: 1 addition & 1 deletion Algorithmia/algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def publish(self, details={}, settings={}, version_info={}, source={}, scmsCrede
api_response = self.client.postJsonHelper(url, publish_parameters, parse_response_as_json=True)
return api_response

def builds(self, limit=56, marker=None):
def get_builds(self, limit=56, marker=None):
kwargs = {"limit": limit, "marker": marker}
url = "/v1/algorithms/" + self.username + "/" + self.algoname + '/builds'
response = self.client.getJsonHelper(url, **kwargs)
Expand Down