|
|
|
|
@ -16,6 +16,7 @@ class Patcher { |
|
|
|
|
fun patchAll(context: Context) { |
|
|
|
|
patchMissingTransactionTypes(context) |
|
|
|
|
|
|
|
|
|
patchSessionSet() |
|
|
|
|
|
|
|
|
|
Preferences.executeOnce(Preferences.Keys.PATCH_SESSION_SETS, context) { |
|
|
|
|
patchSessionSet() |
|
|
|
|
@ -130,7 +131,7 @@ class Patcher { |
|
|
|
|
|
|
|
|
|
realm.executeTransaction { |
|
|
|
|
realm.where(SessionSet::class.java).findAll().deleteAllFromRealm() |
|
|
|
|
val sessions = realm.where(Session::class.java).findAll() |
|
|
|
|
val sessions = realm.where(Session::class.java).isNotNull("startDate").isNotNull("endDate").findAll() |
|
|
|
|
sessions.forEach { session -> |
|
|
|
|
SessionSetManager.updateTimeline(session) |
|
|
|
|
} |
|
|
|
|
|