From 7363a5ec2942e3c1babc23cac20632f199e4fd31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 21 Mar 2021 16:09:13 +0100 Subject: [PATCH] Replace cursor fetchall by iteration over cursor issue5817 review335831003 --- party.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/party.py b/party.py index 8d783a74b0..fb5dc7597d 100644 --- a/party.py +++ b/party.py @@ -477,7 +477,7 @@ class Identifier(sequence_ordered(), ModelSQL, ModelView): party.id, party.vat_number, party.vat_country, where=(party.vat_number != Null) | (party.vat_country != Null))) - for party_id, number, country in cursor.fetchall(): + for party_id, number, country in cursor: code = (country or '') + (number or '') if not code: continue