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] + ' '