mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2024-11-24 19:04:38 -06:00
[Timetable] Fix removing all lessons when not needed.
This commit is contained in:
parent
d4e9e1730f
commit
0742a6a74c
@ -289,7 +289,6 @@ open class Data(val app: App, val profile: Profile?, val loginStore: LoginStore)
|
||||
if (lessonChangeList.isNotEmpty())
|
||||
db.lessonChangeDao().addAll(lessonChangeList)
|
||||
if (lessonNewList.isNotEmpty()) {
|
||||
db.timetableDao().clear(profile.id)
|
||||
db.timetableDao() += lessonNewList
|
||||
}
|
||||
if (gradeList.isNotEmpty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user