From 609381bfeeea06cd3ddaa84e56b3b80d6919d34b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Pich?= Date: Thu, 25 Apr 2024 09:26:28 +0200 Subject: [PATCH] Add workaround to false positive AccountInactiveException errors --- build.gradle | 2 +- .../wulkanowy/sdk/scrapper/interceptor/ErrorInterceptor.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 3de05c1e..7c9a0b2b 100644 --- a/build.gradle +++ b/build.gradle @@ -18,7 +18,7 @@ ext { moshi = "1.13.0" } -version = "2.5.7" +version = "2.5.8-SNAPSHOT" group = "io.github.wulkanowy" nexusPublishing { diff --git a/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/interceptor/ErrorInterceptor.kt b/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/interceptor/ErrorInterceptor.kt index 22d54f9d..58519b1f 100644 --- a/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/interceptor/ErrorInterceptor.kt +++ b/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/interceptor/ErrorInterceptor.kt @@ -93,7 +93,7 @@ internal class ErrorInterceptor( } } - doc.select(".panel.wychowawstwo.pracownik.klient").let { + doc.select(".panel.wychowawstwo.pracownik.klient:not([style])").let { if ("Brak uprawnieĊ„" in it.select(".name").text()) { throw AccountInactiveException(it.select(".additionalText").text()) }