forked from github/szkolny
[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