Skip to content

Commit

Permalink
bug squashed by being more specific with selector
Browse files Browse the repository at this point in the history
  • Loading branch information
Rayahhhmed committed Jun 7, 2024
1 parent 1b590df commit 1c614bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SomeFile.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/class_scraper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ impl Scraper for ClassScraper {
let skip_count = 3 + term_count + 3 * term_count; //
let mut class_activity_information = vec![];
for row in document.select(&term_course_information_table).skip(skip_count) {
let cell_selector = Selector::parse("*").unwrap();
let cell_selector = Selector::parse("td.label, td.data").unwrap();
let mut cells: Vec<_> = row
.select(&cell_selector)
.map(|cell| cell.text().collect::<String>().trim().replace("\u{a0}", ""))
Expand Down

0 comments on commit 1c614bd

Please sign in to comment.