Fix memo field part ordering for Python < 3.6. DictReader dict keys() were not ordered before then.

This commit is contained in:
Henryk Plötz 2018-07-08 23:10:40 +02:00 committed by Tobias Kunze
parent 9b5d431800
commit 676eb5de2f

View File

@ -29,7 +29,7 @@ def process_bank_csv(sender, signal, **kwargs):
if not line: if not line:
continue continue
reference = '' reference = ''
for key in line.keys(): for key in reader.fieldnames:
if key.startswith('VWZ'): if key.startswith('VWZ'):
reference += line[key] + ' ' reference += line[key] + ' '