Skip to content

Commit e8129e2

Browse files
committed
update create_score_definition to work with uuids
1 parent 5f1f873 commit e8129e2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/sasctl/_services/score_definitions.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ def create_score_definition(
8383
else:
8484
object_descriptor_type = "sas.models.model.ds2"
8585

86-
if cls._model_repository.is_uuid(model):
87-
model_id = model
88-
elif isinstance(model, dict) and "id" in model:
86+
if isinstance(model, dict) and "id" in model:
8987
model_id = model["id"]
9088
else:
9189
model = cls._model_repository.get_model(model)

0 commit comments

Comments
 (0)