From cf1fec2a27fecc7b185c6eb27c54665c61025d4f Mon Sep 17 00:00:00 2001 From: Razmig Sarkissian Date: Tue, 2 Jul 2024 19:13:27 +0200 Subject: [PATCH] fix stuff with import from scratch --- PadelClub/Views/Navigation/Umpire/PadelClubView.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PadelClub/Views/Navigation/Umpire/PadelClubView.swift b/PadelClub/Views/Navigation/Umpire/PadelClubView.swift index 820a5e6..7b05902 100644 --- a/PadelClub/Views/Navigation/Umpire/PadelClubView.swift +++ b/PadelClub/Views/Navigation/Umpire/PadelClubView.swift @@ -85,7 +85,7 @@ struct PadelClubView: View { if let mostRecentDateAvailable = SourceFileManager.shared.mostRecentDateAvailable, _lastDataSourceDate.isEarlierThan(mostRecentDateAvailable) { Section { - RowButtonView("Importer \(URL.importDateFormatter.string(from: mostRecentDateAvailable))") { + RowButtonView("Importer \(mostRecentDateAvailable.monthYearFormatted)") { _startImporting() } } @@ -109,7 +109,7 @@ struct PadelClubView: View { Text("Padel Club peut importer toutes les données publiques de la FFT concernant tous les compétiteurs et compétitrices.") } actions: { if let _mostRecentDateAvailable { - RowButtonView("Démarrer l'importation de \(URL.importDateFormatter.string(from: _mostRecentDateAvailable))") { + RowButtonView("Importer \(_mostRecentDateAvailable.monthYearFormatted)") { _startImporting() } } @@ -222,6 +222,7 @@ struct PadelClubView: View { await SourceFileManager.shared.fetchData() checkingFilesAttempt += 1 checkingFiles = false + uuid = UUID() } private func _startImporting() {