Skip to content

Commit 10fd80c

Browse files
committed
Fix for varType error with %DATASETID% type
1 parent bc6734b commit 10fd80c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cosmotech_api/models/scenario.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def to_dict(self) -> Dict[str, Any]:
130130
for _item in self.parameters_values:
131131
if _item:
132132
_items.append(_item.to_dict())
133-
_dict['parametersValues'] = _items
133+
_items[-1]['varType'] = _item.var_type
134134
# override the default output from pydantic by calling `to_dict()` of last_run
135135
if self.last_run:
136136
_dict['lastRun'] = self.last_run.to_dict()

0 commit comments

Comments
 (0)