changeset 8ce66807fa91 in modules/stock_supply_day:5.4
details: 
https://hg.tryton.org/modules/stock_supply_day?cmd=changeset;node=8ce66807fa91
description:
        Do not use a list of columns on select query

        python-sql expects the columns as arguments of the select function

        issue8968
        review250491002
        (grafted from e4659223ba8322cb8a77d8375690aae105ae5191)
diffstat:

 purchase.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r c6073bfe6dc5 -r 8ce66807fa91 purchase.py
--- a/purchase.py       Mon Nov 04 13:14:33 2019 +0100
+++ b/purchase.py       Tue Jan 07 10:15:52 2020 +0100
@@ -65,7 +65,7 @@
         if table_h.column_exist('weekday'):
             cursor = transaction.connection.cursor()
             update = transaction.connection.cursor()
-            cursor.execute(*day.select([day.id, day.index]))
+            cursor.execute(*day.select(day.id, day.index))
             for day_id, index in cursor:
                 update.execute(*table.update(
                         [table.day], [day_id],

Reply via email to