Petites corrections

This commit is contained in:
Colin Maudry
2026-04-24 12:08:48 +02:00
parent 7d8f8a7c19
commit 10f24dec30
4 changed files with 8 additions and 14 deletions
+3 -2
View File
@@ -206,7 +206,8 @@ def dashboard_filters_to_sql(
def tokenize_text_filter(column: str, text: str) -> tuple[str, list]:
terms = text.split()
conditions = []
conditions = [f'"{column}" IS NOT NULL', f"\"{column}\" <> ''"]
params = []
for term in terms:
@@ -214,7 +215,7 @@ def tokenize_text_filter(column: str, text: str) -> tuple[str, list]:
if term.startswith("*") or term.endswith("*"):
params.append(term.replace("*", "%"))
if "+" in term:
elif "+" in term:
params.append(f"%{term.replace('+', ' ')}%")
else:
params.append(f"%{term}%")