def _priority_to_int(priority: str) -> int:
    """Get an int given a priority."""
    priorities = {
        "priority_critical": 90,
        "priority_major": 70,
        "priority_medium": 50,
        "priority_low": 30,
    }
    return priorities.get(priority, 0)