Skip to content

Commit

Permalink
remove unaccent function
Browse files Browse the repository at this point in the history
  • Loading branch information
edulauer committed Apr 17, 2024
1 parent ae3bfdf commit 62ba731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/inlabs_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def _generate_sql(payload: dict) -> str:
if key == 'texto':
key_conditions += " OR " .join(
[
rf"to_tsvector('portuguese', dou_inlabs.unaccent(texto)) @@ to_tsquery('portuguese', '{value}')"
rf"to_tsvector('portuguese', texto) @@ to_tsquery('portuguese', '{value}')"
for value in values
]
)
Expand Down

0 comments on commit 62ba731

Please sign in to comment.