Skip to content

Commit

Permalink
Merge pull request #71 from GDSC-PKNU-21-22/fix/#70
Browse files Browse the repository at this point in the history
Fix: 신설 학과는 크롤링하지 않도록 수정
  • Loading branch information
pp449 authored Aug 8, 2023
2 parents 560c9d5 + 7e8b3fe commit 12a9609
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/crawling/collegeCrawling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ export const collegeCrawling = async (): Promise<College[]> => {
arr[0] !== undefined &&
arr[0] !== '미래융합대학' &&
arr[2] !== '통계·데이터사이언스전공' &&
arr[3] !== undefined
arr[3] !== undefined &&
!arr[1].includes('신설') &&
!arr[2].includes('신설')
) {
if (arr[3].endsWith('/')) arr[3] = arr[3].slice(0, -1);
const tmpList = {
Expand Down

0 comments on commit 12a9609

Please sign in to comment.