Skip to content

Single-sourcing the package version, user-agent and bug fixes #24

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 7 commits into from
Feb 26, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
fixed project methods
  • Loading branch information
fatihkurtoglu committed Feb 25, 2021
commit d42082adf3cc342258fab23d97dd5c4201abfef2
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ __ https://docs.scale.com/reference#project-retrieval

.. code-block:: python

client.get_projet(project_name = 'test_project')
client.get_project(project_name = 'test_project')

List Projects
^^^^^^^^^^^^^
Expand Down
4 changes: 2 additions & 2 deletions scaleapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def create_project(self, project_name, type, params):
projectdata = self._postrequest('projects', payload)
return Project(projectdata, self)

def get_projet(self, project_name):
def get_project(self, project_name):
projectdata = self._getrequest('projects/%s' % project_name)
return Project(projectdata, self)

Expand All @@ -209,7 +209,7 @@ def update_project(self, project_name, **kwargs):
if key not in allowed_kwargs:
raise ScaleInvalidRequest('Illegal parameter %s for ScaleClient.update_project()'
% key, None)
projectdata = self._postrequest('projects/%s/setParams' % project_name)
projectdata = self._postrequest('projects/%s/setParams' % project_name, payload=kwargs)
return projectdata


Expand Down