Skip to content

Commit b44ee9f

Browse files
authored
Merge pull request #32 from hyunmin0317/feature/30
✨ feat: auth_detail 함수 수정 (#30)
2 parents 7f44a3c + a67a499 commit b44ee9f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 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)
1+
# 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)
22
**상명대학교 재학생 인증 라이브러리**
33

44
## Features

sangmyung_univ_auth/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from .auth import auth, auth_detail, completed_courses
22

3-
__VERSION__ = '1.2.1'
3+
__VERSION__ = '1.2.2'
44
__AUTHOR__ = 'Choi Hyun Min'

sangmyung_univ_auth/authenticator/portal_ssotoken.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ def get_detail(session, username: str) -> dict:
3131
data = response['dsStdInfoList'][0]
3232
return {
3333
'name': data['NM_KOR'],
34+
'username': data['STDNO'],
3435
'department': data['TMP_DEPT_MJR_NM'].split()[-1],
3536
'email': data['EMAIL'],
36-
'number': data['STDNO'],
3737
'year': data['SHYR'],
3838
'semester': data['CMP_SMT']
3939
}

0 commit comments

Comments
 (0)