diff --git a/README.md b/README.md index d7276f8..d746daa 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# sangmyung-univ-auth ![Python versions](https://img.shields.io/badge/Python-3.9-blue) ![License](https://img.shields.io/badge/license-MIT-green) ![Release](https://img.shields.io/badge/release-1.2.1-red) +# sangmyung-univ-auth ![Python versions](https://img.shields.io/badge/Python-3.9-blue) ![License](https://img.shields.io/badge/license-MIT-green) ![Release](https://img.shields.io/badge/release-1.2.2-red) **상명대학교 재학생 인증 라이브러리** ## Features diff --git a/sangmyung_univ_auth/__init__.py b/sangmyung_univ_auth/__init__.py index 4aca2e7..fba0a2a 100644 --- a/sangmyung_univ_auth/__init__.py +++ b/sangmyung_univ_auth/__init__.py @@ -1,4 +1,4 @@ from .auth import auth, auth_detail, completed_courses -__VERSION__ = '1.2.1' +__VERSION__ = '1.2.2' __AUTHOR__ = 'Choi Hyun Min' diff --git a/sangmyung_univ_auth/authenticator/portal_ssotoken.py b/sangmyung_univ_auth/authenticator/portal_ssotoken.py index 31b91e9..8fbf4b7 100644 --- a/sangmyung_univ_auth/authenticator/portal_ssotoken.py +++ b/sangmyung_univ_auth/authenticator/portal_ssotoken.py @@ -31,9 +31,9 @@ def get_detail(session, username: str) -> dict: data = response['dsStdInfoList'][0] return { 'name': data['NM_KOR'], + 'username': data['STDNO'], 'department': data['TMP_DEPT_MJR_NM'].split()[-1], 'email': data['EMAIL'], - 'number': data['STDNO'], 'year': data['SHYR'], 'semester': data['CMP_SMT'] }