Browse Source

[FIX] fix flake8

pull/535/head
Mourad Elhadj Mimoune 8 years ago
parent
commit
6cb6ec924b
  1. 3
      sql_export/wizard/wizard_file.py

3
sql_export/wizard/wizard_file.py

@ -85,7 +85,8 @@ class SqlFileWizard(models.TransientModel):
variable_dict['company_id'] = self.env.user.company_id.id
if "%(user_id)s" in sql_export.query:
variable_dict['user_id'] = self._uid
format_query = self.env.cr.mogrify(sql_export.query, variable_dict).decode('utf-8')
format_query = self.env.cr.mogrify(
sql_export.query, variable_dict).decode('utf-8')
query = "COPY (" + format_query + ") TO STDOUT WITH " + \
sql_export.copy_options
name = 'export_query_%s' % uuid.uuid1().hex

Loading…
Cancel
Save