Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #37 from jameshwc/dev
Browse files Browse the repository at this point in the history
v2.2.1
  • Loading branch information
jameshwc authored May 31, 2022
2 parents 6de0c97 + 8fe9a4b commit 4b7cc34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/ceiba/ceiba.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ def __get_courses_rows_from_homepage_table(self, soup) -> ResultSet:
try:
second_table: Tag = soup.find_all("table")[1]
# tables[1] may be audit courses or not-set-up-in-ceiba courses
if '旁聽' in second_table.find_previous_sibling('h2').get_text():
if any(word in second_table.find_previous_sibling('h2').get_text() for word in ['旁聽', 'attend']):
rows.extend(second_table.find_all('tr')[1:])
if any(word in second_table.find_previous_sibling('h3').get_text() for word in ['合授', 'Co-instructed']):
rows.extend(second_table.find_all('tr')[1:])
except IndexError:
pass
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.0
2.2.1

0 comments on commit 4b7cc34

Please sign in to comment.