[API/Librus] Fix student name not normalized, short name not having a trailing dot (remove legacy code).

This commit is contained in:
Kuba Szczodrzyński 2020-02-12 19:20:39 +01:00
parent df8094c39c
commit 3a500f3f28

View File

@ -58,11 +58,6 @@ class SynergiaTokenExtractor(override val data: DataLibrus, val onSuccess: () ->
data.apiAccessToken = accountToken
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()
}
}