def mark_superceded_F57s(new_monthly_f5):
    print "marking superceded F57s"
    
    coverage_from_date = new_monthly_f5.coverage_from_date
    coverage_through_date = new_monthly_f5.coverage_to_date
    raw_filer_id = new_monthly_f5.fec_id
    
    filing_numbers = new_filing.objects.filter(fec_id=raw_filer_id, is_f5_quarterly=False).values('filing_number')
    filing_array = []
    for i in filing_numbers:
        filing_array.append(i['filing_number'])
    updated = SkedE.objects.filter(form_type__istartswith='F57', 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 F57s"
dataset/ETHPy150Open sunlightlabs/read_FEC/fecreader/formdata/management/commands/mark_superceded_body_rows.py/mark_superceded_F57s/swapped operands of `%`