mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-01-18 21:06:44 -06:00
[API/Grades] Fix proposed/final grades added date in Mobidziennik, Idziennik.
This commit is contained in:
parent
6a28dbd2c4
commit
b7df71d7d9
@ -97,6 +97,11 @@ class IdziennikWebProposedGrades(override val data: DataIdziennik,
|
||||
type = TYPE_YEAR_PROPOSED
|
||||
}
|
||||
|
||||
val addedDate = if (data.profile.empty)
|
||||
data.profile.dateSemester1Start.inMillis
|
||||
else
|
||||
System.currentTimeMillis()
|
||||
|
||||
data.gradeList.add(gradeObject)
|
||||
data.metadataList.add(Metadata(
|
||||
profileId,
|
||||
@ -104,7 +109,7 @@ class IdziennikWebProposedGrades(override val data: DataIdziennik,
|
||||
gradeObject.id,
|
||||
profile.empty,
|
||||
profile.empty,
|
||||
System.currentTimeMillis()
|
||||
addedDate
|
||||
))
|
||||
}
|
||||
}
|
||||
|
@ -74,6 +74,10 @@ class MobidziennikApiGrades(val data: DataMobidziennik, rows: List<String>) {
|
||||
subjectId)
|
||||
gradeObject.type = type
|
||||
|
||||
if (data.profile?.empty == true) {
|
||||
addedDate = data.profile.dateSemester1Start.inMillis
|
||||
}
|
||||
|
||||
data.gradeList.add(gradeObject)
|
||||
data.metadataList.add(
|
||||
Metadata(
|
||||
|
Loading…
x
Reference in New Issue
Block a user