Do not use a list of columns on select query
python-sql expects the columns as arguments of the select function issue8968 review250491002
This commit is contained in:
1 parent
e1b80cc05c
commit
d6fc860ed4
1 file changed
+1
-1
+1
-1
@@ -65,7 +65,7 @@ class ProductSupplierDay(ModelSQL):
|
||||
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],
|
||||
|
||||
Reference in new issue
Block a user