Fix hybrid login if student graduated
This commit is contained in:
parent
ddeb8560cf
commit
46fff8a3a7
1 changed files with 8 additions and 1 deletions
|
@ -234,7 +234,14 @@ class Sdk {
|
|||
getApiStudents(it.token, it.pin, it.symbol)
|
||||
}.map { apiStudents ->
|
||||
apiStudents.map { apiStudent ->
|
||||
apiStudent.copy(loginMode = Mode.HYBRID, scrapperHost = scrapperHost)
|
||||
apiStudent.copy(
|
||||
loginMode = Mode.HYBRID,
|
||||
scrapperHost = scrapperHost,
|
||||
|
||||
// used if student graduated
|
||||
classId = it.classId,
|
||||
className = it.className
|
||||
)
|
||||
}
|
||||
}
|
||||
}.toList().map { it.flatten() }
|
||||
|
|
Loading…
Reference in a new issue