Skip to content
Merged
Changes from all commits
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
2 changes: 1 addition & 1 deletion dataikuapi/dss/modelevaluationstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def list_model_evaluations(self, as_type=None):
:rtype: list
"""
items = self.client._perform_json("GET", "/projects/%s/modelevaluationstores/%s/runs/" % (self.project_key, self.mes_id))
if as_type == "objects" or as_type == "object":
if as_type in ["objects", "object"]:

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function DSSModelEvaluationStore.__init__.get_zone.move_to_zone.share_to_zone.unshare_from_zone.list_model_evaluations refactored with the following changes:

return [DSSModelEvaluation(self, item["ref"]["runId"]) for item in items]
else:
return items
Expand Down