mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-02-21 14:04:45 +01:00
[API/Librus] Fix student name not normalized, short name not having a trailing dot (remove legacy code).
This commit is contained in:
parent
df8094c39c
commit
3a500f3f28
@ -58,11 +58,6 @@ class SynergiaTokenExtractor(override val data: DataLibrus, val onSuccess: () ->
|
|||||||
data.apiAccessToken = accountToken
|
data.apiAccessToken = accountToken
|
||||||
data.apiTokenExpiryTime = response.getUnixDate() + 6 * 60 * 60
|
data.apiTokenExpiryTime = response.getUnixDate() + 6 * 60 * 60
|
||||||
|
|
||||||
// TODO remove this
|
|
||||||
data.profile?.studentNameLong = json.getString("studentName") ?: ""
|
|
||||||
val nameParts = json.getString("studentName")?.split(" ")
|
|
||||||
data.profile?.studentNameShort = nameParts?.get(0) + " " + nameParts?.get(1)?.get(0)
|
|
||||||
|
|
||||||
onSuccess()
|
onSuccess()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user