From 676eb5de2ffc59c4e9d0b58761470367c34b255c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henryk=20Pl=C3=B6tz?= Date: Sun, 8 Jul 2018 23:10:40 +0200 Subject: [PATCH] Fix memo field part ordering for Python < 3.6. DictReader dict keys() were not ordered before then. --- byro_shackspace/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/byro_shackspace/utils.py b/byro_shackspace/utils.py index 874a120..3c1481f 100644 --- a/byro_shackspace/utils.py +++ b/byro_shackspace/utils.py @@ -29,7 +29,7 @@ def process_bank_csv(sender, signal, **kwargs): if not line: continue reference = '' - for key in line.keys(): + for key in reader.fieldnames: if key.startswith('VWZ'): reference += line[key] + ' '