mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2024-11-24 10:54:36 -06:00
[Mobidziennik/Web] Force trimming searched subject name.
This commit is contained in:
parent
74820fe67d
commit
efd63797e4
@ -174,7 +174,7 @@ class MobidziennikWebAttendance(override val data: DataMobidziennik,
|
||||
val topic = lesson[1].substringAfter(" - ", missingDelimiterValue = "").takeIf { it.isNotBlank() }
|
||||
if (topic?.startsWith("Lekcja odwołana: ") == true || entry.isEmpty())
|
||||
return
|
||||
val subjectName = lesson[1].substringBefore(" - ")
|
||||
val subjectName = lesson[1].substringBefore(" - ").trim()
|
||||
//val team = lesson[3]
|
||||
val teacherName = lesson[3].fixName()
|
||||
|
||||
|
@ -46,7 +46,7 @@ class MobidziennikWebGrades(override val data: DataMobidziennik,
|
||||
when (e.tagName()) {
|
||||
"div" -> {
|
||||
Regexes.MOBIDZIENNIK_GRADES_SUBJECT_NAME.find(e.outerHtml())?.let {
|
||||
subjectName = it[1]
|
||||
subjectName = it[1].trim()
|
||||
}
|
||||
}
|
||||
"span" -> {
|
||||
|
Loading…
Reference in New Issue
Block a user