From 4b5c2bf022de022ea1e48ff7f059fe4ac8c2fe11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20M=C3=BCller?= Date: Wed, 18 Oct 2023 20:48:12 +0200 Subject: [PATCH] Fix hardcoded constant when polling for timetable, so teachers can get their timetable too --- lib/api/webuntis/queries/getTimetable/getTimetableCache.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/webuntis/queries/getTimetable/getTimetableCache.dart b/lib/api/webuntis/queries/getTimetable/getTimetableCache.dart index f44b768..1d756d1 100644 --- a/lib/api/webuntis/queries/getTimetable/getTimetableCache.dart +++ b/lib/api/webuntis/queries/getTimetable/getTimetableCache.dart @@ -26,7 +26,7 @@ class GetTimetableCache extends RequestCache { options: GetTimetableParamsOptions( element: GetTimetableParamsOptionsElement( id: (await Authenticate.getSession()).personId, - type: 5, + type: (await Authenticate.getSession()).personType, keyType: GetTimetableParamsOptionsElementKeyType.id, ), startDate: startdate,