We know this is a real array but the spreadsheet puts it as a string

This commit is contained in:
benjamin melançon 2024-10-24 11:09:45 -04:00
parent 7708c61892
commit 8b617882b1

View file

@ -89,8 +89,10 @@ def parse_harvest_csv(file=None):
if (row_count % 20 == 0):
print("ON ROW:", row_count)
issues = parse_notes_section(row['Notes'])
issues_dict = split_issues_into_columns(issues)
issue_numbers = parse_notes_section(row['Notes'])
# issues_dict = split_issues_into_columns(issue_numbers)
# instead:
issues_dict = dict(zip(issue_fields, [[col for col in [issue_number, '']] for issue_number in issue_numbers]))
row.update(issues_dict)
writer.writerow(row)