File tree Expand file tree Collapse file tree 2 files changed +3
-51
lines changed Expand file tree Collapse file tree 2 files changed +3
-51
lines changed Original file line number Diff line number Diff line change 2
2
3
3
from requests import HTTPError
4
4
5
- from .score_definitions import ScoreDefinitions as sd
5
+ from .score_definitions import ScoreDefinitions
6
6
from .service import Service
7
7
8
8
@@ -18,6 +18,7 @@ class ScoreExecution(Service):
18
18
"""
19
19
20
20
_SERVICE_ROOT = "/scoreExecution"
21
+ _score_definitions = ScoreDefinitions ()
21
22
22
23
(
23
24
list_executions ,
@@ -57,7 +58,7 @@ def create_score_execution(
57
58
"""
58
59
59
60
# Gets information about the scoring object from the score definition and raises an exception if the score definition does not exist
60
- score_definition = sd .get_definition (score_definition_id )
61
+ score_definition = cls . _score_definitions .get_definition (score_definition_id )
61
62
if score_definition .status_code >= 400 :
62
63
raise HTTPError (score_definition .json ())
63
64
score_exec_name = score_definition .get ("name" )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments