Mise à jour de 'flask_base/app.py'
This commit is contained in:
@@ -41,6 +41,12 @@ def show_questions():
|
|||||||
with open('./data/quizz.json', 'r') as file:
|
with open('./data/quizz.json', 'r') as file:
|
||||||
questions = json.load(file)
|
questions = json.load(file)
|
||||||
return render_template('quiz.html', questions=questions)
|
return render_template('quiz.html', questions=questions)
|
||||||
|
|
||||||
|
@app.route('/softwares_data')
|
||||||
|
def show_questions():
|
||||||
|
with open('./data/softwares.json', 'r') as file:
|
||||||
|
softwares = json.load(file)
|
||||||
|
return render_template('pokemon.html', data=softwares)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run(debug=True, port=8080)
|
app.run(debug=True, port=8080)
|
||||||
|
|||||||
Reference in New Issue
Block a user