From 9b7e8585b0cee75972d45546dc2067a5192530cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Pich?= Date: Wed, 12 Jun 2024 20:39:07 +0200 Subject: [PATCH] Fix ustawienia values in grades response in uonetplus-uczenplus --- .../kotlin/io/github/wulkanowy/sdk/scrapper/ApiEndpoints.kt | 2 +- .../github/wulkanowy/sdk/scrapper/grades/GradesResponse.kt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/ApiEndpoints.kt b/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/ApiEndpoints.kt index 65c74d16..504b5a2d 100644 --- a/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/ApiEndpoints.kt +++ b/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/ApiEndpoints.kt @@ -1184,7 +1184,7 @@ internal val ApiEndpointsVHeaders = mapOf( "V-TokenApi" to "{%UUID%}-{%vTokenApiIndexed%}", ), "uonetplus-uczenplus" to mapOf( - "V-TokenApi" to "{UUID}-{appCustomerDb}-{appCustomerDbSig}-{appVersion}-{apiKey}", + "V-TokenApi" to "{UUID}-{appCustomerDb}-{appCustomerDbSig}-{apiKey}", ), ), ) diff --git a/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/grades/GradesResponse.kt b/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/grades/GradesResponse.kt index f4b9c6b5..8fb850f2 100644 --- a/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/grades/GradesResponse.kt +++ b/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/grades/GradesResponse.kt @@ -36,13 +36,13 @@ internal data class GradesResponse( internal data class GradesSettings( @SerialName("isSrednia") - val isAverage: Boolean, + val isAverage: Boolean = false, @SerialName("isPunkty") - val isPoints: Boolean, + val isPoints: Boolean = false, @SerialName("isDorosli") - val isForAdults: Boolean, + val isForAdults: Boolean = false, ) @Serializable