add comments

This commit is contained in:
Mylloon 2022-08-15 17:25:14 +02:00
parent bef4748916
commit c8026131cf
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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,