Closed Deadpikle closed 6 months ago
Done and tested on iOS 17. That should work nicely.
Note for the future if it ever comes up: SQLite allows for this functionality as of version 3.24.0
. iOS changes SQLite versions over time, but iOS 12 has version 3.24.0
. Fortunately, Tsurukame also has a minimum version of iOS 12, so it should be fine to implement it this way. 👍
(P.S. Happy almost New Year!)
Done and tested on iOS 17. That should work nicely.
Note for the future if it ever comes up: SQLite allows for this functionality as of version
3.24.0
. iOS changes SQLite versions over time, but iOS 12 has version3.24.0
. Fortunately, Tsurukame also has a minimum version of iOS 12, so it should be fine to implement it this way. 👍(P.S. Happy almost New Year!)
Sweet, thanks for checking! Happy new year to you too!
My last PR, #674, had a small issue where recent mistakes were not sticking around in the database after an online assignment fetch due to
subject_progress
being wiped via aREPLACE INTO
statement inLocalCachingClient.fetchAssignments
. Instead of usingREPLACE INTO
, performs anUPDATE
followed by anINSERT
if theUPDATE
did nothing.Also fixes an issue I found where logging out of one account into another account without restarting the app didn't clear cached numbers in
LocalCachingClient
. Fixes this by invalidating items inLocalCachingClient.clearAllData
. Also noticed that a force refresh would not clear the recent lesson count cached number from the web, so I also invalidated that onsync
.Closes #676