debug Popular bet
continuous-integration/drone/push Build is passing Details

pull/13/head
luevard 8 months ago
parent b03bf7e121
commit ddacad6885

@ -111,6 +111,11 @@ class PostgresBetDataSource(private val database: Database) : BetDataSource {
}
override fun getMostPopularBet(): Bet? {
database.bets.forEach {
println(it)
}
val max=database.bets.filter { (it.isPrivate eq false) and (it.status eq BetStatus.WAITING) }.maxBy { it.popularityscore }
println(max)
if(max!=null){

Loading…
Cancel
Save