[Answer]-Calculating daily winnings with django

1👍

You could use the QuerySet.extra method:

UserBet.objects.filter(result = 1).extra({'winnings':'odds * coins'})...

Leave a comment