Merge remote-tracking branch 'origin/api-v2' into api-v2

This commit is contained in:
Kuba Szczodrzyński
2019-10-11 21:36:59 +02:00
3 changed files with 8 additions and 8 deletions

View File

@ -93,10 +93,10 @@ class LibrusApiGrades(override val data: DataLibrus,
profile?.empty ?: false,
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 {
apiGet(TAG, "Me") { json ->
val me = json?.getJsonObject("Me")
val me = json.getJsonObject("Me")
val account = me?.getJsonObject("Account")
val user = me?.getJsonObject("User")
@ -36,4 +36,4 @@ class LibrusApiMe(override val data: DataLibrus,
onSuccess()
}
}
}
}