Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] convert_field_to_html: fix format call on string #387

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions openupgradelib/openupgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -2473,9 +2473,11 @@ def convert_field_to_html(
if translate:
if version_info[0] < 16:
do_raise("Translatable fields are only managed in version 16.0 or higher")
cr.execute("SELECT id, {field_name} FROM {table};").format(
field_name=field_name, table=table
) # pylint: disable=E8103
cr.execute( # pylint: disable=E8103
"SELECT id, {field_name} FROM {table};".format(
field_name=field_name, table=table
)
)
for row in cr.fetchall():
record_id, translations = row
for lang in translations:
Expand Down
Loading