From a67a499c5d330ebc5accb6301cc72c71e32b4c91 Mon Sep 17 00:00:00 2001 From: hyunmin0317 Date: Thu, 15 Feb 2024 20:08:57 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20auth=5Fdetail=20=ED=95=A8?= =?UTF-8?q?=EC=88=98=20=EC=88=98=EC=A0=95=20(#30)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- sangmyung_univ_auth/__init__.py | 2 +- sangmyung_univ_auth/authenticator/portal_ssotoken.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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'] }