Fix buggy check in question answer shredder

This commit is contained in:
Raphael Michel
2023-03-07 11:40:36 +01:00
parent b5c94fd002
commit a2ed32be8b

View File

@@ -383,7 +383,7 @@ class QuestionAnswerShredder(BaseDataShredder):
d = le.parsed_data
if 'data' in d:
for i, row in enumerate(d['data']):
if isinstance(d['data'], dict):
if isinstance(d['data'], list):
for f in row:
if f not in ('attendee_name', 'attendee_email'):
d['data'][i][f] = ''