def handle(self, *args, **options):
        filings_to_process = new_filing.objects.filter(data_is_processed=True, body_rows_superceded=True).exclude(ie_rows_processed=True).order_by('filing_number')
        for this_filing in filings_to_process:
            lines_present = this_filing.lines_present
            has_sked_E = False
            try:
                lines_present['E']
                if int(lines_present['E']) > 0:
                    has_sked_E = True
            except __HOLE__:
                continue
            
            if has_sked_E:
                #print "processing %s " % (this_filing.filing_number)
                #print lines_present, lines_present['E']
                
                skedelines = SkedE.objects.filter(filing_number=this_filing.filing_number)
                
                for skede in skedelines:
                    attach_committee_to_skedeline(skede)
                    attach_ie_target(skede)
            # mark that we've been processed. 
            this_filing.ie_rows_processed=True
            this_filing.save()
dataset/ETHPy150Open sunlightlabs/read_FEC/fecreader/formdata/management/commands/process_skede_lines.py/Command.handle