-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(getCourse):
req.session.stuInfo.lastSem
is undefined
改用lodash的get取得,如果還是undefined, getCourse會throw error並認為使用者未登入 feat: 更改課程查詢課程資料抓取順序 原先-> crawlCoursePlan(抓教學計劃)=> getCourseExcel(獲取課程查詢系統的excel)=> updateCourse(更新mongodb) 改為-> getCourseExcel(獲取課程查詢系統的excel)=> crawlCoursePlan(抓教學計劃)=> updateCourse(更新mongodb) 這樣的順序比較正確,先有課程資料後才有教學計畫,才能進行合併。 feat: debugPort 隨機抓一個沒在用的port給selenium用 防止chromedriver有錯誤 fix: 因學校教學計畫下載網址改變,抓不到教學計畫的問題 現在學校的教學計畫網址改為system8....不再是140.131開頭 feat: 使用課程查詢的學期的val當作教學計畫的學期val 兩個val是相同的,這樣只要抓一個,後面不關順序,直接改val方便使用
- Loading branch information
1 parent
b46374f
commit 65ccd18
Showing
2 changed files
with
28 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters