import sqlite3


def get_summoner_name_from_id(summoner):
    """Obtain a summoner name from the table given the summoner's ID

    Args:
        summoner (int): ID of summoner

    Returns:
        str: Name of desired summoner
    """
    
    conn = sqlite3.connect('jit.db')
    c = conn.cursor()
    
    c.execute('SELECT name FROM summoner WHERE id = ?', (summoner,))
    name = c.fetchall()[0][0]
    return name