diff --git a/lib/home.dart b/lib/home.dart index 878c005..8e84031 100644 --- a/lib/home.dart +++ b/lib/home.dart @@ -142,12 +142,6 @@ LessonStatus getLessonStatus(List lessons, TimeOfDay currentTime) { } } -void postDiscordTestingWebhook(Dio dio, String msg) async { - await dio.post( - "https://discord.com/api/webhooks/1155074944741412895/MYC_MKKKDKlfH8-e2xjj19WmIhmHzHCZzKVl8v_As2ttlCi9Bpjkp15nN3zeDAzv3hID", - data: {"content": msg}); -} - class HomePageState extends State { final GlobalKey scaffoldKey = GlobalKey(); late SharedPreferences sharedPreferences; @@ -176,19 +170,9 @@ class HomePageState extends State { dio.interceptors .add(DioCacheManager(CacheConfig(baseUrl: baseUrl)).interceptor); fetchAndCompareBuildName(); - testConnectionToNewAPI(); getData(); //fetching data } - void testConnectionToNewAPI() async { - Response res = await dio.post("$testUrl/test"); - if (res.statusCode == 200 && res.data["message"] == "test") { - postDiscordTestingWebhook(dio, "Success on [POST] /test"); - } else { - postDiscordTestingWebhook(dio, "Fail on [POST] /test"); - } - } - @override void setState(VoidCallback fn) { if (!mounted) return;