|
|
|
|
@ -186,6 +186,7 @@ abstract class PACSVDescriptor<T : Identifiable>(source: DataSource, private var |
|
|
|
|
is SessionField.TournamentNumberOfPlayers -> session.tournamentNumberOfPlayers = |
|
|
|
|
field.parse(value) |
|
|
|
|
is SessionField.TournamentEntryFee -> session.tournamentEntryFee = field.parse(value) |
|
|
|
|
is SessionField.TournamentType -> session.tournamentType = field.parse(value) |
|
|
|
|
is SessionField.TournamentFeatures -> { |
|
|
|
|
value.split(CSVField.separator).forEach { featureName -> |
|
|
|
|
val tournamentFeature: TournamentFeature = realm.getOrCreate(featureName) |
|
|
|
|
|