joshpelkey / cfbets

College football betting web app, built with django/bootstrap/jquery
Apache License 2.0
15 stars 8 forks source link

non-expired prop bet with winner shows in open bets #17

Closed joshpelkey closed 7 years ago

joshpelkey commented 7 years ago

need to filter out open bets that have a winner marked

joshpelkey commented 7 years ago

already filtered out?? i'm not sure how to recreate the scenario from the kansas/purdue bet that started this bug.

open_bets = ProposedBet.objects.filter(remaining_wagersgt=0, end_date__gt=timezone.now(), won_betisnull=True).exclude(user=current_user)