|
|
|
|
@ -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() { |
|
|
|
|
|