<s> """<STR_LIT>""" <EOL> from django . core . management . base import BaseCommand , CommandError <EOL> import csv , datetime <EOL> from helios import utils as helios_utils <EOL> from helios . models import * <EOL> class Command ( BaseCommand ) : <EOL> args = '<STR_LIT>' <EOL> help = '<STR_LIT>' <EOL> def handle ( self , * args , ** options ) : <EOL> active_helios_trustees = Trustee . objects . exclude ( secret_key = None ) . exclude ( election__encrypted_tally = None ) . filter ( decryption_factors = None ) <EOL> for t in active_helios_trustees : <EOL> tally = t . election . encrypted_tally <EOL> tally . init_election ( t . election ) <EOL> factors , proof = tally . decryption_factors_and_proofs ( t . secret_key ) <EOL> t . decryption_factors = factors <EOL> t . decryption_proofs = proof <EOL> t . save ( ) </s>
