Moved to Ascently
All checks were successful
Ascently Docker Deploy / build-and-push (push) Successful in 2m31s
All checks were successful
Ascently Docker Deploy / build-and-push (push) Successful in 2m31s
This commit is contained in:
@@ -49,10 +49,10 @@ struct ClimbingStatsProvider: TimelineProvider {
|
||||
}
|
||||
|
||||
private func loadClimbingStats() -> ClimbingStats {
|
||||
let userDefaults = UserDefaults(suiteName: "group.com.atridad.OpenClimb")
|
||||
let userDefaults = UserDefaults(suiteName: "group.com.atridad.Ascently")
|
||||
|
||||
// Load attempts from UserDefaults
|
||||
guard let attemptsData = userDefaults?.data(forKey: "openclimb_attempts"),
|
||||
guard let attemptsData = userDefaults?.data(forKey: "ascently_attempts"),
|
||||
let attempts = try? JSONDecoder().decode([WidgetAttempt].self, from: attemptsData)
|
||||
else {
|
||||
return ClimbingStats(
|
||||
@@ -60,11 +60,11 @@ struct ClimbingStatsProvider: TimelineProvider {
|
||||
}
|
||||
|
||||
// Load sessions for streak calculation
|
||||
let sessionsData = (userDefaults?.data(forKey: "openclimb_sessions"))!
|
||||
let sessionsData = (userDefaults?.data(forKey: "ascently_sessions"))!
|
||||
let sessions = (try? JSONDecoder().decode([WidgetSession].self, from: sessionsData)) ?? []
|
||||
|
||||
// Load gyms for favorite gym name
|
||||
let gymsData = (userDefaults?.data(forKey: "openclimb_gyms"))!
|
||||
let gymsData = (userDefaults?.data(forKey: "ascently_gyms"))!
|
||||
let gyms = (try? JSONDecoder().decode([WidgetGym].self, from: gymsData)) ?? []
|
||||
|
||||
let calendar = Calendar.current
|
||||
|
||||
Reference in New Issue
Block a user