def _get_task_stage_and_priority(task):
    stage_list = task['stage'].split('/')
    stage = stage_list[0]
    priority = stage_list[-1] if 1 > len(stage_list) else 0
    try:
        priority = float(priority)
    except ValueError:
        logger.warn(
            'Task %s has non numeric priority "%s", set to 0',
            task, priority)
        priority = 0
    return stage, priority
dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/task/legacy_tasks_adapter.py/_get_task_stage_and_priority/swapped operands of `>`