Add tilde for blank condition values

This commit is contained in:
JonnyWong16 2021-05-25 11:24:52 -07:00
parent a2b2d1d227
commit 70e88a9013
2 changed files with 4 additions and 1 deletions

View file

@ -295,7 +295,7 @@ def notify_custom_conditions(notifier_id=None, parameters=None):
# Cast the condition values to the correct type
try:
if parameter_type == 'str':
values = [str(v).lower() for v in values]
values = ['' if v == '~' else str(v).lower() for v in values]
elif parameter_type == 'int':
values = [helpers.cast_to_int(v) for v in values]