Files @ 6e133970d958
Branch filter:

Location: symposion_app/symposion/reviews/management/commands/calculate_results.py

Christopher Neugebauer
Removes div-by-zero error if the first vote is an abstention
1
2
3
4
5
6
7
8
9
from django.core.management.base import BaseCommand

from symposion.reviews.models import ProposalResult


class Command(BaseCommand):

    def handle(self, *args, **options):
        ProposalResult.full_calculate()