Replace cursor fetchall by iteration over cursor

issue5817
review335831003
This commit is contained in:
Cédric Krier
2021-03-21 16:09:13 +01:00
parent d1389566ad
commit bf35a5fd5d
+1 -1
View File
@@ -131,7 +131,7 @@ class PromotionCouponNumber(DeactivableMixin, ModelSQL, ModelView):
for sub_numbers in grouped_slice(numbers):
query.where = reduce_ids(table.id, map(int, sub_numbers))
cursor.execute(*query)
result.update(dict(cursor.fetchall()))
result.update(dict(cursor))
return result
@classmethod