mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-01-18 12:56:45 -06:00
[Mobidziennik/Web] Fix counting e-attendance.
This commit is contained in:
parent
e825af0ff0
commit
74820fe67d
@ -188,22 +188,18 @@ class MobidziennikWebAttendance(override val data: DataMobidziennik,
|
|||||||
}
|
}
|
||||||
entry = entry.removePrefix(typeSymbol)
|
entry = entry.removePrefix(typeSymbol)
|
||||||
|
|
||||||
var isCounted = true
|
val isCounted = true
|
||||||
val baseType = when (typeSymbol) {
|
val baseType = when (typeSymbol) {
|
||||||
"." -> TYPE_PRESENT
|
"." -> TYPE_PRESENT
|
||||||
"|" -> TYPE_ABSENT
|
"|" -> TYPE_ABSENT
|
||||||
"+" -> TYPE_ABSENT_EXCUSED
|
"+" -> TYPE_ABSENT_EXCUSED
|
||||||
"s" -> TYPE_BELATED
|
"s" -> TYPE_BELATED
|
||||||
"z" -> TYPE_RELEASED
|
"z" -> TYPE_RELEASED
|
||||||
else -> {
|
"e" -> TYPE_PRESENT_CUSTOM
|
||||||
isCounted = false
|
"en" -> TYPE_ABSENT
|
||||||
when (typeSymbol) {
|
"ep" -> TYPE_PRESENT_CUSTOM
|
||||||
"e" -> TYPE_PRESENT_CUSTOM
|
"+ₑ" -> TYPE_ABSENT_EXCUSED
|
||||||
"en" -> TYPE_ABSENT
|
else -> TYPE_UNKNOWN
|
||||||
"ep" -> TYPE_PRESENT_CUSTOM
|
|
||||||
else -> TYPE_UNKNOWN
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
val typeName = types?.get(typeSymbol) ?: ""
|
val typeName = types?.get(typeSymbol) ?: ""
|
||||||
val typeColor = when (typeSymbol) {
|
val typeColor = when (typeSymbol) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user