changeset e4659223ba83 in modules/stock_supply_day:default
details:
https://hg.tryton.org/modules/stock_supply_day?cmd=changeset;node=e4659223ba83
description:
Do not use a list of columns on select query
python-sql expects the columns as arguments of the select function
issue8968
review250491002
diffstat:
purchase.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 5de53725b2d0 -r e4659223ba83 purchase.py
--- a/purchase.py Wed Dec 18 21:41:21 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],