increase number of months in tenup tournament gathering 3 to 4

newoffer2025
Razmig Sarkissian 3 months ago
parent 26ec624f4b
commit 1ce74fb235
  1. 4
      PadelClub.xcodeproj/project.pbxproj
  2. 6
      PadelClub/Views/Navigation/Agenda/ActivityView.swift

@ -3118,7 +3118,7 @@
CODE_SIGN_ENTITLEMENTS = PadelClub/PadelClub.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 2;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEFINES_MODULE = YES;
DEVELOPMENT_ASSET_PATHS = "\"PadelClub/Preview Content\"";
@ -3166,7 +3166,7 @@
CODE_SIGN_ENTITLEMENTS = PadelClub/PadelClub.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 2;
DEFINES_MODULE = YES;
DEVELOPMENT_ASSET_PATHS = "\"PadelClub/Preview Content\"";
DEVELOPMENT_TEAM = BQ3Y44M3Q6;

@ -426,7 +426,11 @@ struct ActivityView: View {
Task {
do {
let clubs : [Club] = dataStore.user.clubsObjects()
try await federalDataViewModel.gatherTournaments(clubs: clubs.filter { $0.code != nil }, startDate: .now.startOfMonth)
try await federalDataViewModel.gatherTournaments(
clubs: clubs.filter { $0.code != nil },
startDate: .now.startOfCurrentMonth,
endDate: .now.startOfCurrentMonth.addingMonths(4)
)
} catch {
self.error = error
}

Loading…
Cancel
Save