changeset c06bd9eebdb1 in modules/stock_supply_day:5.2
details:
https://hg.tryton.org/modules/stock_supply_day?cmd=changeset;node=c06bd9eebdb1
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 2a17d089fecb -r c06bd9eebdb1 purchase.py
--- a/purchase.py Mon May 06 15:17:47 2019 +0200
+++ 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],