Projet

Général

Profil

0001-sql-only-pass-strings-to-.join-56008.patch

Benjamin Dauvergne, 06 août 2021 01:34

Télécharger (813 octets)

Voir les différences:

Subject: [PATCH] sql: only pass strings to .join() (#56008)

fts_strings can eventually contain lazy strings due to translations.
 wcs/sql.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
wcs/sql.py
2181 2181
            sql_statement,
2182 2182
            {
2183 2183
                'id': self.id,
2184
                'fts': FtsMatch.get_fts_value(' '.join(fts_strings)),
2184
                'fts': FtsMatch.get_fts_value(' '.join(str(fts_string) for fts_string in fts_strings)),
2185 2185
            },
2186 2186
        )
2187 2187

  
2188
-