

def ItemQualificationCheck(self, filename_list, date, range_of_days):
    'Checks to see if packages were promoted to stable within date range.'
    result_set = set([])
    period = datetime.timedelta(days=range_of_days)
    for filename in filename_list:
        p = models.PackageInfo.get_by_key_name(filename)
        if p:
            if (('stable' in p.catalogs) and ('stable' in p.manifests)):
                query = query = models.AdminPackageLog.all()
                query.filter('filename =', filename)
                query.order('-mtime')
                for item in query:
                    if ('stable' not in item.catalogs):
                        result_set.add(item.filename)
                        break
                    elif (item.mtime < (date - period)):
                        break
    return result_set

dataset/ETHPy150Open google/simian/src/simian/mac/admin/release_report.py ReleaseReport.ItemQualificationCheck/original