fix issue with event

sync3
Raz 6 months ago
parent 02c56abf10
commit 78767cec86
  1. 8
      PadelClubData/Data/Event.swift

@ -87,6 +87,14 @@ final public class Event: BaseEvent {
})
}
public func federalTournaments() -> [Tournament] {
tournaments.filter({ $0.isAnimation() == false && $0.isCanceled == false && $0.isDeleted == false })
}
public func paidTournaments() -> [Tournament] {
tournaments.filter({ $0.isFree() == false && $0.isCanceled == false && $0.isDeleted == false })
}
func insertOnServer() throws {
DataStore.shared.events.writeChangeAndInsertOnServer(instance: self)
for tournament in self.tournaments {

Loading…
Cancel
Save