To accomdate data

This commit is contained in:
Aaron Lee 2021-10-03 15:19:37 +08:00
parent 16124f7617
commit a0e2b7b0ed

View file

@ -83,7 +83,7 @@ def upload_homeroom():
with open(filepath) as file:
csv_dict = csv.DictReader(file)
for row in csv_dict:
if row['number'] == 'teacher':
if row['number'] == 'teacher' | | row['number'] == 'Teacher':
accs = row['name'].split(',')
for key in allUsers:
if accs == []: