From a0e2b7b0edc2b1f742f05e4a0850200a3c0f21c5 Mon Sep 17 00:00:00 2001 From: Aaron Lee Date: Sun, 3 Oct 2021 15:19:37 +0800 Subject: [PATCH] To accomdate data --- upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload.py b/upload.py index b2476cb..d96ed7b 100644 --- a/upload.py +++ b/upload.py @@ -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 == []: