def all_job_data(jobs, job_type):
    """ Return an iterator over all job data. Exclude config template dups. """
    conf_tmpl_ids = []
    for job in jobs:
        for jt, data in job.iteritems():
            if jt == job_type:
                if data['config_template_id'] not in conf_tmpl_ids:
                    conf_tmpl_ids.append(data['config_template_id'])
                    yield data
dataset/ETHPy150Open openstack-infra/reviewday/reviewday/html_helper.py/all_job_data/original