mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 16:22:57 -07:00
Add tilde for blank condition values
This commit is contained in:
parent
a2b2d1d227
commit
70e88a9013
2 changed files with 4 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue