Skip to content

Commit

Permalink
Merge pull request #305 from ForgeFlow/master-fix-flake8
Browse files Browse the repository at this point in the history
[FIX] flake8
  • Loading branch information
pedrobaeza authored Sep 12, 2022
2 parents 14ffca6 + 2b91b07 commit d5cbbdd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openupgradelib/openupgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -2428,7 +2428,7 @@ def format_message(f):
# CONTEXT GROUP BY
try:
context = safe_eval(f.context, globaldict)
assert(isinstance(context, dict))
assert isinstance(context, dict)
except Exception as e:
logger.warning(
format_message(f) +
Expand Down
3 changes: 2 additions & 1 deletion openupgradelib/openupgrade_90.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ def convert_binary_field_to_attachment(env, field_spec):
last_id = 0
while True:
env.cr.execute(
"""SELECT id, {0} FROM {1} WHERE {0} IS NOT NULL AND id > {2}
"""SELECT id, {0} FROM {1}
WHERE {0} IS NOT NULL AND id > {2}
ORDER BY id LIMIT 500;
""".format(column, model._table, last_id)
)
Expand Down

0 comments on commit d5cbbdd

Please sign in to comment.