Skip to content

Commit 42cf71c

Browse files
committed
Strip whitespace from fields pulled from csv
1 parent 731fb6f commit 42cf71c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packet/commands.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ def create_secret():
3333

3434
class CSVFreshman:
3535
def __init__(self, row):
36-
self.name = row[0]
37-
self.rit_username = row[3]
38-
self.onfloor = row[1] == 'TRUE'
36+
self.name = row[0].strip()
37+
self.rit_username = row[3].strip()
38+
self.onfloor = row[1].strip() == 'TRUE'
3939

4040

4141
def parse_csv(freshmen_csv):

0 commit comments

Comments
 (0)