forked from Anri/cal8tor
add comments
This commit is contained in:
parent
bef4748916
commit
c8026131cf
1 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,7 @@ use scraper::{Html, Selector};
|
|||
|
||||
mod models;
|
||||
|
||||
/// Fetch the timetable for a class
|
||||
pub async fn timetable(year: i8, semester: i8, letter: Option<char>) -> Vec<models::Day> {
|
||||
let document = get_webpage(year, semester, letter)
|
||||
.await
|
||||
|
@ -96,6 +97,7 @@ pub async fn timetable(year: i8, semester: i8, letter: Option<char>) -> Vec<mode
|
|||
timetable
|
||||
}
|
||||
|
||||
/// Get timetable webpage
|
||||
async fn get_webpage(
|
||||
year: i8,
|
||||
semester: i8,
|
||||
|
|
Reference in a new issue