Skip to content

Commit

Permalink
Hotfix: Convert "dataType" to a correct enum value
Browse files Browse the repository at this point in the history
  • Loading branch information
dule1322 committed Jun 14, 2024
1 parent 7ff8999 commit 5eaf27f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions coretex/entities/task_run/parameter/base_parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@

class BaseParameter(ABC, Generic[T]):

def __init__(self, name: str, description: str, value: Optional[T], dataType: ParameterType, required: bool, type: int = 3) -> None:
def __init__(self, name: str, description: str, value: Optional[T], dataType: str, required: bool, type: int = 3) -> None:
self.name = name
self.description = description
self.value = value
self.dataType = dataType
self.dataType = ParameterType(dataType)
self.required = required
self.type_ = type

Expand Down Expand Up @@ -80,7 +80,7 @@ def encode(self) -> Dict[str, Any]:
"name": self.name,
"description": self.description,
"value": self.value,
"data_type": self.dataType,
"data_type": self.dataType.value,
"required": self.required
}

Expand Down

0 comments on commit 5eaf27f

Please sign in to comment.