Skip to content

Commit

Permalink
Update tools/enrollment_preprocessor.py
Browse files Browse the repository at this point in the history
Co-authored-by: Richard Ebeling <[email protected]>
  • Loading branch information
Kakadus and richardebeling authored Nov 13, 2023
1 parent fd04517 commit c6a29f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/enrollment_preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ def run_preprocessor(enrollment_data: str | BytesIO, user_data: TextIO) -> Bytes
users = {}
reader = csv.reader(user_data, delimiter=";", lineterminator="\n")
for row in reader:
email = row[-1]
users[email] = User(*row)
user = User(*row)
users[user.email] = user
for sheet in workbook.worksheets:
for wb_row in sheet.iter_rows(min_row=2, min_col=2):
fix_user(users, UserCells(None, *wb_row[:3]))
Expand Down

0 comments on commit c6a29f7

Please sign in to comment.