joshpelkey / cfbets

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

Money won by week based on accepted date, not completed date #55

Closed joshpelkey closed 6 years ago

joshpelkey commented 6 years ago

Update this to do modified_on, rather than created on. You should be winning/losing money based on when the bet is marked as complete

find total number proposed and accepted in that range

    proposed = ProposedBet.objects.filter(
        user=current_user, created_on__range=(
            start_date, end_date)).count()
    accepted = AcceptedBet.objects.filter(
        accepted_user=current_user, created_on__range=(
            start_date, end_date)).count()