diff --git a/src/main/kotlin/io/github/wulkanowy/api/attendance/AttendanceResponse.kt b/src/main/kotlin/io/github/wulkanowy/api/attendance/AttendanceResponse.kt index 5467fc71..c9f2e975 100644 --- a/src/main/kotlin/io/github/wulkanowy/api/attendance/AttendanceResponse.kt +++ b/src/main/kotlin/io/github/wulkanowy/api/attendance/AttendanceResponse.kt @@ -7,7 +7,7 @@ import java.util.* class AttendanceResponse { - @Selector(".presentData thead th:not(:first-of-type)", regex = "\\s(.*)") + @Selector(".presentData thead th:not(:first-of-type)", regex = "\\s(.*)", defValue = "01.01.1970") @Format("dd.MM.yyyy") var days: List = emptyList() diff --git a/src/main/kotlin/io/github/wulkanowy/api/exams/Exam.kt b/src/main/kotlin/io/github/wulkanowy/api/exams/Exam.kt index e83fb615..a07eebb2 100644 --- a/src/main/kotlin/io/github/wulkanowy/api/exams/Exam.kt +++ b/src/main/kotlin/io/github/wulkanowy/api/exams/Exam.kt @@ -11,7 +11,7 @@ class Exam { @SerializedName("DataModyfikacji") @Format("dd.MM.yyyy") - @Selector(".wartosc", index = 3, regex = ".+, (.+)") + @Selector(".wartosc", index = 3, regex = ".+, (.+)", defValue = "01.01.1970") lateinit var entryDate: Date @SerializedName("DisplayValue") diff --git a/src/main/kotlin/io/github/wulkanowy/api/exams/ExamResponse.kt b/src/main/kotlin/io/github/wulkanowy/api/exams/ExamResponse.kt index 66a97295..7a2f5bcf 100644 --- a/src/main/kotlin/io/github/wulkanowy/api/exams/ExamResponse.kt +++ b/src/main/kotlin/io/github/wulkanowy/api/exams/ExamResponse.kt @@ -17,7 +17,7 @@ class ExamResponse { @SerializedName("Data") @Format("dd.MM.yyyy") - @Selector("h2", regex = ".+, (.+)") + @Selector("h2", regex = ".+, (.+)", defValue = "01.01.1970") lateinit var date: Date @SerializedName("Sprawdziany") diff --git a/src/main/kotlin/io/github/wulkanowy/api/homework/Homework.kt b/src/main/kotlin/io/github/wulkanowy/api/homework/Homework.kt index 3d03e914..94059b40 100644 --- a/src/main/kotlin/io/github/wulkanowy/api/homework/Homework.kt +++ b/src/main/kotlin/io/github/wulkanowy/api/homework/Homework.kt @@ -11,7 +11,7 @@ class Homework { @SerializedName("DataModyfikacji") @Format("dd.MM.yyyy") - @Selector(".wartosc", index = 2, regex = ".+, (.+)") + @Selector(".wartosc", index = 2, regex = ".+, (.+)", defValue = "01.01.1970") lateinit var entryDate: Date @SerializedName("Przedmiot") diff --git a/src/main/kotlin/io/github/wulkanowy/api/homework/HomeworkResponse.kt b/src/main/kotlin/io/github/wulkanowy/api/homework/HomeworkResponse.kt index c577db66..bae0ac22 100644 --- a/src/main/kotlin/io/github/wulkanowy/api/homework/HomeworkResponse.kt +++ b/src/main/kotlin/io/github/wulkanowy/api/homework/HomeworkResponse.kt @@ -9,7 +9,7 @@ class HomeworkResponse { @SerializedName("Data") @Format("dd.MM.yyyy") - @Selector(".mainContainer h2:not(:contains(Brak))", regex = "\\s(.*)") + @Selector(".mainContainer h2:not(:contains(Brak))", regex = "\\s(.*)", defValue = "01.01.1970") lateinit var date: Date @SerializedName("ZadaniaDomowe") diff --git a/src/main/kotlin/io/github/wulkanowy/api/mobile/Device.kt b/src/main/kotlin/io/github/wulkanowy/api/mobile/Device.kt index f9e80696..8b1e06b0 100644 --- a/src/main/kotlin/io/github/wulkanowy/api/mobile/Device.kt +++ b/src/main/kotlin/io/github/wulkanowy/api/mobile/Device.kt @@ -17,6 +17,6 @@ class Device { @SerializedName("DataUtworzenia") @Format(value = "dd.MM.yyyy 'godz:' HH:mm:ss") - @Selector("td", index = 1) + @Selector("td", index = 1, defValue = "01.01.1970") lateinit var date: Date } diff --git a/src/main/kotlin/io/github/wulkanowy/api/notes/NotesResponse.kt b/src/main/kotlin/io/github/wulkanowy/api/notes/NotesResponse.kt index 62a348af..3842e962 100644 --- a/src/main/kotlin/io/github/wulkanowy/api/notes/NotesResponse.kt +++ b/src/main/kotlin/io/github/wulkanowy/api/notes/NotesResponse.kt @@ -12,6 +12,6 @@ class NotesResponse { var notes: List = listOf() @Format("dd.MM.yyyy") - @Selector(".mainContainer div:first-of-type h2:not(:contains(Brak))") + @Selector(".mainContainer div:first-of-type h2:not(:contains(Brak))", defValue = "01.01.1970") var dates: List = listOf() } diff --git a/src/main/kotlin/io/github/wulkanowy/api/timetable/TimetableResponse.kt b/src/main/kotlin/io/github/wulkanowy/api/timetable/TimetableResponse.kt index 49dd4143..95f3f152 100644 --- a/src/main/kotlin/io/github/wulkanowy/api/timetable/TimetableResponse.kt +++ b/src/main/kotlin/io/github/wulkanowy/api/timetable/TimetableResponse.kt @@ -8,7 +8,7 @@ import java.util.* class TimetableResponse { - @Selector(".presentData thead th:not(:nth-of-type(1)):not(:nth-of-type(2))", regex = "\\s(.*)") + @Selector(".presentData thead th:not(:nth-of-type(1)):not(:nth-of-type(2))", regex = "\\s(.*)", defValue = "01.01.1970") @Format("dd.MM.yyyy") var days: List = emptyList()