Skip to content

Commit

Permalink
Removed extraneous float data type handling for yaml options in trigg…
Browse files Browse the repository at this point in the history
…ers.
  • Loading branch information
Vertraic committed Nov 26, 2024
1 parent c99daa4 commit e6c7a65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,12 +379,12 @@ def roll_linked_options(weights: dict) -> dict:


def compare_results(
yaml_value: Union[str, int, float, bool, dict, list],
trigger_value: Union[str, int, float, bool, dict, list],
yaml_value: Union[str, int, bool, dict, list],
trigger_value: Union[str, int, bool, dict, list],
comparator: str):
if yaml_value is None:
return False
if (isinstance(yaml_value, str|bool|int|float) and isinstance(trigger_value, str|bool|int|float)):
if (isinstance(yaml_value, str|bool|int) and isinstance(trigger_value, str|bool|int)):
yaml_value = str(yaml_value).lower()
trigger_value = str(trigger_value).lower()
if comparator == "=":
Expand Down

0 comments on commit e6c7a65

Please sign in to comment.