[API/Librus] Fix grade syncing

This commit is contained in:
Kacper Ziubryniewicz 2019-10-11 20:27:24 +02:00
parent cf0aa2788d
commit f6b50fbb58
2 changed files with 5 additions and 5 deletions

View File

@ -93,10 +93,10 @@ class LibrusApiGrades(override val data: DataLibrus,
profile?.empty ?: false, profile?.empty ?: false,
addedDate addedDate
)) ))
data.setSyncNext(ENDPOINT_LIBRUS_API_NORMAL_GRADES, SYNC_ALWAYS, MainActivity.DRAWER_ITEM_GRADES)
onSuccess()
} }
data.setSyncNext(ENDPOINT_LIBRUS_API_NORMAL_GRADES, SYNC_ALWAYS, MainActivity.DRAWER_ITEM_GRADES)
onSuccess()
} }
} }
} }

View File

@ -17,7 +17,7 @@ class LibrusApiMe(override val data: DataLibrus,
init { init {
apiGet(TAG, "Me") { json -> apiGet(TAG, "Me") { json ->
val me = json?.getJsonObject("Me") val me = json.getJsonObject("Me")
val account = me?.getJsonObject("Account") val account = me?.getJsonObject("Account")
val user = me?.getJsonObject("User") val user = me?.getJsonObject("User")