From 11eacee18b1afc4b3343e9dbf1b202018c64820d Mon Sep 17 00:00:00 2001 From: FLacombe Date: Wed, 6 Sep 2023 23:20:24 +0200 Subject: [PATCH] Fix filter --- analysers/Analyser_Merge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analysers/Analyser_Merge.py b/analysers/Analyser_Merge.py index 4d1591d1b..b00606c69 100644 --- a/analysers/Analyser_Merge.py +++ b/analysers/Analyser_Merge.py @@ -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: