Skip to content

Commit b81b03f

Browse files
committed
Prefix worksheets actions by 'statistics_'
(worksheet is too generic)
1 parent 6d1889c commit b81b03f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

dataikuapi/dss/project.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -800,15 +800,15 @@ def set_tags(self, tags={}):
800800
# Statistics worksheets
801801
########################################################
802802

803-
def list_worksheets(self, as_objects=True):
803+
def list_statistics_worksheets(self, as_objects=True):
804804
worksheets = self.client._perform_json(
805805
"GET", "/projects/%s/statistics/worksheets/" % self.project_key)
806806
if as_objects:
807-
return [self.get_worksheet(worksheet['id']) for worksheet in worksheets]
807+
return [self.get_statistics_worksheet(worksheet['id']) for worksheet in worksheets]
808808
else:
809809
return worksheets
810810

811-
def create_worksheet(self, input_dataset, name="My worksheet"):
811+
def create_statistics_worksheet(self, input_dataset, name="My worksheet"):
812812
"""
813813
Create a new worksheet in the project, and return a handle to interact with it.
814814
@@ -837,9 +837,9 @@ def create_worksheet(self, input_dataset, name="My worksheet"):
837837
"POST", "/projects/%s/statistics/worksheets/" % self.project_key,
838838
body=worksheet_definition
839839
)
840-
return self.get_worksheet(created_worksheet['id'])
840+
return self.get_statistics_worksheet(created_worksheet['id'])
841841

842-
def get_worksheet(self, worksheet_id):
842+
def get_statistics_worksheet(self, worksheet_id):
843843
"""
844844
Get a handle to interact with a specific worksheet
845845

0 commit comments

Comments
 (0)