From 2e0ca7d3a7f25e094664f63ba6078293f78343fd Mon Sep 17 00:00:00 2001 From: Philipp Gruener Date: Thu, 4 Jul 2024 23:25:46 +0200 Subject: [PATCH] fix: simplified functional call to iterator (semgrep) --- frappe/database/postgres/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/database/postgres/database.py b/frappe/database/postgres/database.py index c3a69473ee..caba53e242 100644 --- a/frappe/database/postgres/database.py +++ b/frappe/database/postgres/database.py @@ -425,7 +425,7 @@ class PostgresDatabase(PostgresExceptionUtil, Database): schema=sql.Identifier(self.db_schema), table=sql.Identifier("tab" + doctype), constraint=sql.Identifier(constraint_name), - fields=sql.SQL(", ").join(map(sql.Identifier, fields)), + fields=sql.SQL(", ").join(sql.Identifier(field) for field in fields), ) .as_string(self._conn) )