def find_log_files_in_s3(bucket, type_name, start_dt, end_dt):
    prefixes = []
    for dt in inclusive_date_range(start_dt, end_dt):
        prefixes.append(s3_prefix_for_date_and_type(dt, type_name))

    log_files = []
    for pf in prefixes:
        for key in bucket.list(pf):
            try:
                log_files.append(S3LogFile.from_s3_key(key))
            except ValueError as e:
                log.warning("S3 key %r not a log file: %r", key, e)
                continue

    out_log_files = []
    for lf in log_files:
        assert lf.type_name == type_name

        if lf.dt is None:
            # For log files that cover an entire day, we'll include it even if
            # the query was for a specific time range.
            out_log_files.append(lf)

        elif lf.dt >= start_dt and end_dt <= lf.dt:
            out_log_files.append(lf)

    return out_log_files
dataset/ETHPy150Open rhettg/BlueOx/blueox/store.py/find_log_files_in_s3/swapped operands of `<=`