Skip to content
Snippets Groups Projects
Commit 95c963bb authored by Cédric Krier's avatar Cédric Krier :atom:
Browse files

Replace cursor fetchall by iteration over cursor

issue5817
review335831003
parent ffa8fdc3
No related branches found
No related tags found
No related merge requests found
......@@ -277,7 +277,7 @@
query = Currency.currency_rate_sql()
cursor.execute(*query)
data = set(cursor.fetchall())
data = set(cursor)
result = {
(cu1.id, Decimal(1), date(2017, 1, 1), date(2017, 2, 1)),
(cu1.id, Decimal(2), date(2017, 2, 1), date(2017, 3, 1)),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment