Skip to content

Commit

Permalink
Update model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KamalGalrani authored Jun 10, 2019
1 parent 2683e94 commit 47c8a55
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions grafana_api/api/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def update_model(self, id, name, description="", **kwargs):
))
return response


def list_models(self, limit=100, page=0):
if type(limit) != int or limit < 0:
raise ValueError("limit is invalid!")
Expand All @@ -46,7 +45,6 @@ def list_models(self, limit=100, page=0):
))
return response


def get_model(self, id, depends=False):
if type(id) != int or not id:
raise ValueError("Model id is invalid!")
Expand All @@ -61,4 +59,4 @@ def delete_model(self, id):
raise ValueError("Model id is invalid!")

response = self.api.DELETE(self.path + "/%d" % id)
return response
return response

0 comments on commit 47c8a55

Please sign in to comment.