(domain, case_ids)
Given a list of case IDs, return a dict where the ids are keys and the
        values are the last server modified date of that case.
Given a list of case IDs, return a dict where the ids are keys and the
        values are the last server modified date of that case.
Given a list of case IDs return a dict where the ids are keys and the values are the last server modified date of that case .
def get_last_modified_dates(domain, case_ids):
        """
        Given a list of case IDs, return a dict where the ids are keys and the
        values are the last server modified date of that case.
        """
        if not case_ids:
            return []
        with CommCareCaseSQL.get_plproxy_cursor(readonly=True) as cursor:
            cursor.execute(
                'SELECT case_id, server_modified_on FROM get_case_last_modified_dates(%s, %s)',
                [domain, case_ids]
            )
            results = fetchall_as_namedtuple(cursor)
            return {result.case_id: result.server_modified_on for result in results}
def get_last_modified_dates ( domain , case_ids ) : if not case_ids : return [ ] with CommCareCaseSQL . get_plproxy_cursor ( readonly = True ) as cursor : cursor . execute ( 'SELECT case_id, server_modified_on FROM get_case_last_modified_dates(%s, %s)' , [ domain , case_ids ] ) results = fetchall_as_namedtuple ( cursor ) return { result . case_id : result . server_modified_on for result in results }