fix typo
This commit is contained in:
parent
e33fed34a3
commit
918431b731
2 changed files with 5 additions and 4 deletions
|
@ -1,9 +1,8 @@
|
|||
mod timetable;
|
||||
mod info;
|
||||
mod timetable;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
|
||||
let _timetable = timetable::timetable(3, 1, None).await;
|
||||
|
||||
let _info = info::info().await;
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
use scraper::{Selector, Html};
|
||||
use scraper::{Html, Selector};
|
||||
|
||||
mod models;
|
||||
|
||||
pub async fn timetable(year: i8, semester: i8, letter: Option<char>) -> Vec<models::Day> {
|
||||
let document = get_webpage(year, semester, letter).await.expect("Can't reach timetable website.");
|
||||
let document = get_webpage(year, semester, letter)
|
||||
.await
|
||||
.expect("Can't reach timetable website.");
|
||||
|
||||
// Selectors
|
||||
let sel_table = Selector::parse("table").unwrap();
|
||||
|
|
Reference in a new issue