Skip to content

Commit

Permalink
Update - make use of 1/0 in BinaryParam default
Browse files Browse the repository at this point in the history
  • Loading branch information
aybruhm authored Dec 19, 2023
1 parent 61b09d1 commit 920a2c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agenta-cli/agenta/sdk/agenta_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,4 +392,4 @@ def find_in_schema(schema: dict, param_name: str, xparam: str):
subschema["default"] = "https://example.com"
if isinstance(param_val, BinaryParam):
subschema = find_in_schema(schema_to_override, param_name, "bool")
subschema["default"] = True if param_val.default == 1 else False
subschema["default"] = param_val.default

0 comments on commit 920a2c0

Please sign in to comment.