Archived
1
0
Fork 0
forked from Anri/cal8tor

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; mod models;
/// Fetch the timetable for a class
pub async fn timetable(year: i8, semester: i8, letter: Option<char>) -> Vec<models::Day> { pub async fn timetable(year: i8, semester: i8, letter: Option<char>) -> Vec<models::Day> {
let document = get_webpage(year, semester, letter) let document = get_webpage(year, semester, letter)
.await .await
@ -96,6 +97,7 @@ pub async fn timetable(year: i8, semester: i8, letter: Option<char>) -> Vec<mode
timetable timetable
} }
/// Get timetable webpage
async fn get_webpage( async fn get_webpage(
year: i8, year: i8,
semester: i8, semester: i8,