QuizFlask/run.py
def admin():
    '''the admin route to add and remove questions- get all the current questions and send them to admin page'''
    cursor = get_db().cursor()
    sql = "SELECT * FROM questions"
    cursor.execute(sql)
    questions = cursor.fetchall()
    return render_template("admin.html", questions=questions)
the admin route to add and remove questions- get all the current questions and send them to admin page
the admin route to add and remove questions- get all the current questions and send them to admin page
the admin route to add and remove questions - get all the current questions and send them to admin page
def admin():
    cursor = get_db().cursor()
    sql = "SELECT * FROM questions"
    cursor.execute(sql)
    questions = cursor.fetchall()
    return render_template("admin.html", questions=questions)
def admin ( ) : cursor = get_db ( ) . cursor ( ) sql = "SELECT * FROM questions" cursor . execute ( sql ) questions = cursor . fetchall ( ) return render_template ( "admin.html" , questions = questions )
the admin route to add and remove questions- get all the current questions and send them to admin page
the admin route to add and remove questions - get all the current questions and send them to admin page
'''the admin route to add and remove questions- get all the current questions and send them to admin page'''