Distinct students by symbol in hybrid login
This commit is contained in:
parent
3182d77633
commit
1f7fab1740
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ class Sdk {
|
|||
fun getStudentsHybrid(email: String, password: String, scrapperBaseUrl: String, startSymbol: String = "Default", apiKey: String = ""): Single<List<Student>> {
|
||||
return getStudentsFromScrapper(email, password, scrapperBaseUrl, startSymbol)
|
||||
.compose(ScrapperExceptionTransformer())
|
||||
.map { students -> students.distinctBy { it.schoolSymbol } }
|
||||
.map { students -> students.distinctBy { it.symbol } }
|
||||
.flatMapObservable { Observable.fromIterable(it) }
|
||||
.flatMapSingle { scrapperStudent ->
|
||||
scrapper.let {
|
||||
|
|
Loading…
Reference in a new issue