Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

학교 일정 default 값 에러 #4

Closed
cjaewon opened this issue Oct 20, 2019 · 2 comments
Closed

학교 일정 default 값 에러 #4

cjaewon opened this issue Oct 20, 2019 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@cjaewon
Copy link
Contributor

cjaewon commented Oct 20, 2019

const calender = await schoolParser.getCalendar({
   default: '❌ 특별한 일정이 없습니다.',
});

이렇게 코드를 짠 후 소스코드를 돌려보니

calender: {
    '1': '❌ 특별한 일정이 없습니다. 1학년 해외 현장체험학습/1',
    '2': '❌ 특별한 일정이 없습니다. 1학년 해외 현장체험학습/1',
    '3': '❌ 특별한 일정이 없습니다. 개천절',
    '4': '❌ 특별한 일정이 없습니다. 재량휴업일',
    '5': '❌ 특별한 일정이 없습니다.',
    '6': '❌ 특별한 일정이 없습니다.',
    '7': '❌ 특별한 일정이 없습니다.',
    '8': '❌ 특별한 일정이 없습니다.',
    '9': '❌ 특별한 일정이 없습니다. 한글날',
    '10': '❌ 특별한 일정이 없습니다.',
    '11': '❌ 특별한 일정이 없습니다.',
    '12': '❌ 특별한 일정이 없습니다.',
    '13': '❌ 특별한 일정이 없습니다.',
    '14': '❌ 특별한 일정이 없습니다.',
    '15': '❌ 특별한 일정이 없습니다. 중간고사',
    '16': '❌ 특별한 일정이 없습니다. 중간고사',
    '17': '❌ 특별한 일정이 없습니다. 중간고사',
    '18': '❌ 특별한 일정이 없습니다. 중간고사',
    '19': '❌ 특별한 일정이 없습니다.',
    '20': '❌ 특별한 일정이 없습니다.',
    '21': '❌ 특별한 일정이 없습니다.',
    '22': '❌ 특별한 일정이 없습니다.',
    '23': '❌ 특별한 일정이 없습니다.',
    '24': '❌ 특별한 일정이 없습니다.',
    '25': '❌ 특별한 일정이 없습니다. OpenLab',
    '26': '❌ 특별한 일정이 없습니다.',
    '27': '❌ 특별한 일정이 없습니다.',
    '28': '❌ 특별한 일정이 없습니다.',
    '29': '❌ 특별한 일정이 없습니다.',
    '30': '❌ 특별한 일정이 없습니다.',
    '31': '❌ 특별한 일정이 없습니다.',
    year: 2019,
    month: 10
  }

이런 결과값이 나옵니다. 확인 부탁드려요.

@cjaewon
Copy link
Contributor Author

cjaewon commented Oct 20, 2019

node-school-kr/src/calendar.js에서 48줄 부터 73줄 에 있는 오류 인 것 같습니다.

@leegeunhyeok leegeunhyeok added the bug Something isn't working label Oct 20, 2019
@leegeunhyeok leegeunhyeok self-assigned this Oct 20, 2019
@leegeunhyeok
Copy link
Owner

문자열 값 비교 및 대치 로직을 구현하여 버그 수정했습니다. 2.2.1 버전에 업데이트되어 배포될 예정입니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants