(form, cases)
return {
        case_id for case_id in case_ids
        if modified_dates.get(case_id, datetime.max) > form.received_on
    }
Return a set of case IDs for cases that have been modified since the form was
    originally submitted i.e. are needing to be rebuilt
Return a set of case IDs for cases that have been modified since the form was
    originally submitted i.e. are needing to be rebuilt
Return a set of case IDs for cases that have been modified since the form was originally submitted i . e . are needing to be rebuilt
def _get_case_ids_needing_rebuild(form, cases):
    """Return a set of case IDs for cases that have been modified since the form was
    originally submitted i.e. are needing to be rebuilt"""

    # exclude any cases that didn't already exist
    case_ids = [case.case_id for case in cases if case.is_saved()]
    modified_dates = CaseAccessorSQL.get_last_modified_dates(form.domain, case_ids)
    return {
        case_id for case_id in case_ids
        if modified_dates.get(case_id, datetime.max) > form.received_on
    }
def _get_case_ids_needing_rebuild ( form , cases ) : # exclude any cases that didn't already exist case_ids = [ case . case_id for case in cases if case . is_saved ( ) ] modified_dates = CaseAccessorSQL . get_last_modified_dates ( form . domain , case_ids ) return { case_id for case_id in case_ids if modified_dates . get ( case_id , datetime . max ) > form . received_on }