Ignored IPs not applied #836

This commit is contained in:
jokob-sk
2024-10-11 20:05:23 +11:00
parent f9e6871ab2
commit c4e0abf913
3 changed files with 6 additions and 7 deletions

View File

@@ -463,7 +463,7 @@ def list_to_where(logical_operator, column_name, condition_operator, values_list
"""
if not values_list:
return "" # Return an empty string if the list is empty to avoid breaking the SQL condition.
return " AND 1=1 " # Return a conditioneitehr way if the list is empty to avoid breaking the SQL condition.
# Replace {s-quote} with single quote in values_list
values_list = [value.replace("{s-quote}", "'") for value in values_list]