Skip to content

Commit

Permalink
Fix timetable for new API
Browse files Browse the repository at this point in the history
  • Loading branch information
vyPal committed Oct 16, 2023
1 parent 191483c commit c079499
Show file tree
Hide file tree
Showing 2 changed files with 196 additions and 123 deletions.
4 changes: 2 additions & 2 deletions lib/load.dart
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ class LoadingScreenState extends State<LoadingScreen> {
setState(() {});
String token = sharedPreferences.getString("token")!;
Response response = await dio.get(
"$baseUrl/api/timetable?from=${getWeekDay().toIso8601String()}",
"$baseUrl/api/timetable/recent",
options: buildCacheOptions(
const Duration(days: 5),
const Duration(days: 3),
maxStale: const Duration(days: 14),
forceRefresh: true,
options: Options(
Expand Down
Loading

0 comments on commit c079499

Please sign in to comment.