get method

Future<Week> get(
  1. int year,
  2. int week, {
  3. Week? debugWeek,
})

Implementation

Future<Week> get(int year, int week, {Week? debugWeek}) async {
  if (debugWeek != null) {
    return debugWeek;
  }
  var url = student.buildUrl(
      "SkemaNy.aspx?${student.teacher ? "laererid" : "elevid"}=${student.studentId}&week=${intFixed(week, 2)}$year");
  var response = await request(url);
  return await extractCalendar(BeautifulSoup(response.data), year, week);
}