Tournament Type was not imported

od
Laurent 6 years ago
parent 96a4dc9c54
commit 9c2e183b5e
  1. 1
      app/src/main/java/net/pokeranalytics/android/util/csv/PACSVDescriptor.kt

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

Loading…
Cancel
Save