Skip to content

Commit e9f2314

Browse files
committed
Fix golang specific issue with model version being a string
1 parent d47eae9 commit e9f2314

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sasctl/_services/model_repository.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ def create_model(
357357
model["immutable"] = is_immutable or model.get("immutable")
358358
model["inputVariables"] = input_variables or model.get("inputVariables", [])
359359
model["outputVariables"] = output_variables or model.get("outputVariables", [])
360-
model["version"] = "2"
360+
model["version"] = 2
361361

362362
return cls.post(
363363
"/models",
@@ -399,7 +399,7 @@ def add_model_content(
399399
model = cls.get_model(model)
400400
id_ = model["id"]
401401

402-
if content_type is "multipart/form-data" and isinstance(file, bytes):
402+
if content_type == "multipart/form-data" and isinstance(file, bytes):
403403
content_type = "application/octet-stream"
404404
elif isinstance(file, dict):
405405
import json

0 commit comments

Comments
 (0)