Skip to content

Commit

Permalink
Fix filter
Browse files Browse the repository at this point in the history
  • Loading branch information
flacombe committed Sep 6, 2023
1 parent 141e190 commit 11eacee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analysers/Analyser_Merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ def _where_and(query, attribut_not_exists, attribut_value):
clauses.append("NOT " + k_not_exists)
clauses.append(v(k_value))
elif isinstance(v, list):
actualList = filter(lambda i: i is not False, v)
actualList = list(filter(lambda i: i is not False, v))
if len(actualList) > 1:
cond = "string_to_array(" + k_value + "::text, ';')" + " && ARRAY['{}']".format("', '".join(map(lambda i: i.replace("'", "''"), actualList)))
else:
Expand Down

0 comments on commit 11eacee

Please sign in to comment.