From b629ea208e778864bee469530acb6ecb291b6331 Mon Sep 17 00:00:00 2001 From: hyunmin0317 Date: Thu, 15 Feb 2024 19:47:50 +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 | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 632b238..d7276f8 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.0-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.1-red) **상명대학교 재학생 인증 라이브러리** ## Features diff --git a/sangmyung_univ_auth/__init__.py b/sangmyung_univ_auth/__init__.py index 5855b51..4aca2e7 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.0' +__VERSION__ = '1.2.1' __AUTHOR__ = 'Choi Hyun Min' diff --git a/sangmyung_univ_auth/authenticator/portal_ssotoken.py b/sangmyung_univ_auth/authenticator/portal_ssotoken.py index e778e9a..31b91e9 100644 --- a/sangmyung_univ_auth/authenticator/portal_ssotoken.py +++ b/sangmyung_univ_auth/authenticator/portal_ssotoken.py @@ -33,6 +33,7 @@ def get_detail(session, username: str) -> dict: 'name': data['NM_KOR'], 'department': data['TMP_DEPT_MJR_NM'].split()[-1], 'email': data['EMAIL'], + 'number': data['STDNO'], 'year': data['SHYR'], 'semester': data['CMP_SMT'] }