Only add contested pots when considering winning pots

kmmtest
Laurent 2 years ago
parent 829e64448f
commit d07793c409
  1. 3
      app/src/main/java/net/pokeranalytics/android/model/realm/handhistory/HandHistory.kt

@ -642,6 +642,8 @@ open class HandHistory : RealmObject(), Deletable, RowRepresentable, Filterable,
pots.forEach { pot ->
if (pot.positions.size > 1) { // we only consider contested pots
val winningPositions = compareHands(pot.positions.toList())
// Distributes the pot for each winners
@ -657,6 +659,7 @@ open class HandHistory : RealmObject(), Deletable, RowRepresentable, Filterable,
wp.amount += share
}
}
}
}
return wonPots.values

Loading…
Cancel
Save