def get_errant_logs(node):
    return [
        each for each in node.logs
        # Log was created while bug was live
        if each.date < HOTFIX_DATE <= REGRESSION_DATE
        and is_errant_log(each)
    ]
dataset/ETHPy150Open CenterForOpenScience/osf.io/scripts/hide_extra_registration_logs.py/get_errant_logs/swapped operands of `<=`