def get_quiz_id(cur, meeting_slug):
    """ Gets the id for the quiz with meeting slug equal to `meeting_slug`

    Arguments:
        cur {psygopg2 cursor} -- A database cursor
        meeting_slug {string} -- The slug for the meeting to which this quiz corresponds
    """
    cur.execute("SELECT id from data.quiz WHERE meeting_slug=%s",
                (meeting_slug,))
    quiz_id = cur.fetchone()[0]
    return quiz_id