diff --git a/blackboard_sync/institutions.py b/blackboard_sync/institutions.py index cf32b43..9f9f8f4 100644 --- a/blackboard_sync/institutions.py +++ b/blackboard_sync/institutions.py @@ -82,8 +82,9 @@ class Institution(BaseModel): def load() -> list[Institution]: db = [] + db_file = Path(__file__).parent / UNIVERSITY_DB - with (Path(__file__).parent / UNIVERSITY_DB).open() as f: + with db_file.open(encoding='utf-8') as f: db = json.load(f) return [Institution(**uni) for uni in db]