From a75fc0381f400a3560bf9007e51fa9e9fc5c2a27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 7 Sep 2009 15:09:57 +0200 Subject: [PATCH] Removed hardcoded True in sql query for issue1157 --- trytond/ir/translation.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/trytond/ir/translation.py b/trytond/ir/translation.py index ad2c3e8a07..51fac52e37 100644 --- a/trytond/ir/translation.py +++ b/trytond/ir/translation.py @@ -672,13 +672,13 @@ class ReportTranslationSet(Wizard): if seqmatch.ratio() > 0.6: cursor.execute('UPDATE ir_translation ' \ 'SET src = %s, ' \ - 'fuzzy = True ' \ + 'fuzzy = %s ' \ 'WHERE name = %s ' \ 'AND type = %s ' \ 'AND src = %s ' \ 'AND module = %s', - (string, report.report_name, 'odt', string_trans, - report.module)) + (string, True, report.report_name, 'odt', + string_trans, report.module)) del trans_reports[string_trans] done = True break @@ -1024,11 +1024,11 @@ class TranslationUpdate(Wizard): for row in cursor.dictfetchall(): cursor.execute('UPDATE ir_translation ' \ - 'SET fuzzy = True, ' \ + 'SET fuzzy = %s, ' \ 'value = %s ' \ 'WHERE src = %s ' \ 'AND (value = \'\' OR value IS NULL) ' \ - 'AND lang = %s', (row['value'], row['src'], + 'AND lang = %s', (True, row['value'], row['src'], data['form']['lang'])) cursor.execute('UPDATE ir_translation ' \