Skip to content

Commit 9b5224c

Browse files
author
Nazar F
authored
fix: dictionary lapping for widget (#248)
1 parent 9e4b0ad commit 9b5224c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

examples/pipelines/dhis2/pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from openhexa.sdk.workspaces.connection import DHIS2Connection
66

77

8-
@pipeline("dhis2")
8+
@pipeline(name="DHIS2 Data Elements")
99
@parameter("dhis2_con", type=DHIS2Connection, required=True)
1010
@parameter(
1111
"data_elements",

openhexa/sdk/pipelines/parameter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def to_dict(self) -> dict[str, typing.Any]:
453453
"choices": self.choices,
454454
"help": self.help,
455455
"default": self.default,
456-
"widget": self.widget if self.widget else None,
456+
"widget": self.widget.value if self.widget else None,
457457
"connection": self.connection,
458458
"required": self.required,
459459
"multiple": self.multiple,

0 commit comments

Comments
 (0)