def priority(node):
    """
    Extracts task's priority level from a project tree node.

    :param Node node: project tree node.
    :return: task's prority or 1 (lowest) if not present.
    :rtype: int
    """
    return node.item.priority if node.item.priority else 1