<s> from datetime import date <EOL> from django . core . management . base import BaseCommand , CommandError <EOL> from summary_data . utils . summary_utils import update_committee_times <EOL> from summary_data . models import Committee_Overlay <EOL> from django . conf import settings <EOL> try : <EOL> CURRENT_CYCLE = settings . CURRENT_CYCLE <EOL> except : <EOL> print "<STR_LIT>" <EOL> CURRENT_CYCLE = '<STR_LIT>' <EOL> class Command ( BaseCommand ) : <EOL> help = "<STR_LIT>" <EOL> requires_model_validation = False <EOL> def handle ( self , * args , ** options ) : <EOL> all_committees = Committee_Overlay . objects . filter ( is_dirty = True , cycle = CURRENT_CYCLE ) <EOL> for committee in all_committees : <EOL> update_committee_times ( committee , CURRENT_CYCLE ) <EOL> committee . is_dirty = False <EOL> committee . save ( ) </s>
