Skip to content

Commit

Permalink
增加对于未开课课程的过滤
Browse files Browse the repository at this point in the history
  • Loading branch information
wanqian-windrunner authored and Samueli924 committed Sep 10, 2024
1 parent 9f1bb85 commit 312770e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def decode_course_list(_text):
_raw_courses = _soup.select("div.course")
_course_list = list()
for course in _raw_courses:
if not course.select_one("a.not-open-tip"):
if not course.select_one("a.not-open-tip") and not course.select_one("div.not-open-tip"):
_course_detail = {}
_course_detail["id"] = course.attrs["id"]
_course_detail["info"] = course.attrs["info"]
Expand Down

0 comments on commit 312770e

Please sign in to comment.