Only add timetable to cache on success
This commit is contained in:
parent
8e3af696e0
commit
ca8efdaa85
@ -106,7 +106,7 @@ class CacheController {
|
||||
weekNumberYear ?: 0,
|
||||
timetableLink
|
||||
), timetable ?: TimetableWeek()
|
||||
).also { timetableList[key] = it }
|
||||
).also { if (timetable != null) timetableList[key] = it }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user