Skip to content

Commit

Permalink
[FIX] openupgrade_160: _convert_field_bootstrap_4to5_sql ids
Browse files Browse the repository at this point in the history
>>> ids = [1, 3, 5]
>>> (ids,)
([1, 3, 5],)
>>> (tuple(ids),)
((1, 3, 5),)
  • Loading branch information
chienandalu committed Nov 2, 2023
1 parent 0e9e1f8 commit bbff562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openupgradelib/openupgrade_160.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def _convert_field_bootstrap_4to5_sql(cr, table, field, ids=None):
params = ()
if ids:
sql += "WHERE id IN %s"
params = (ids,)
params = (tuple(ids),)
cr.execute(sql, params)
for id_, old_content in cr.fetchall():
new_content = convert_string_bootstrap_4to5(old_content)
Expand Down

0 comments on commit bbff562

Please sign in to comment.