def mark_superceded_F24s(new_f3x_new_filing):
    
    # we only mark the child rows as superceded--the filing itself isn't, because it's possible, in theory, that it's *half* superceded. 
    coverage_from_date = new_f3x_new_filing.coverage_from_date
    coverage_through_date = new_f3x_new_filing.coverage_to_date
    raw_filer_id = new_f3x_new_filing.fec_id
    
    filing_numbers = new_filing.objects.filter(fec_id=raw_filer_id, form_type__startswith='F24').values('filing_number')
    filing_array = []
    for i in filing_numbers:
        filing_array.append(i['filing_number'])
    
    updated = SkedE.objects.filter(filing_number__in=filing_array, superceded_by_amendment=False, expenditure_date_formatted__gte=coverage_from_date, expenditure_date_formatted__lte=coverage_through_date).update(superceded_by_amendment=True)
    if updated:
        print updated % "marked %s superceded F24s"
dataset/ETHPy150Open sunlightlabs/read_FEC/fecreader/formdata/management/commands/mark_superceded_body_rows.py/mark_superceded_F24s/swapped operands of `%`