import requests


def get_current_version(election_id: str, state_code: str) -> str:
    """Checks the base website to get the current data version number for later
    data download"""

    current_version_url = f"https://results.enr.clarityelections.com//{state_code}/{election_id}/current_ver.txt"

    r = requests.get(current_version_url)
    r.text

    return r.text