Fix softwares data endpoint
This commit is contained in:
@@ -43,7 +43,7 @@ def show_questions():
|
|||||||
return render_template('quiz.html', questions=questions)
|
return render_template('quiz.html', questions=questions)
|
||||||
|
|
||||||
@app.route('/softwares_data')
|
@app.route('/softwares_data')
|
||||||
def show_questions():
|
def softwares_data():
|
||||||
with open('./data/softwares.json', 'r') as file:
|
with open('./data/softwares.json', 'r') as file:
|
||||||
softwares = json.load(file)
|
softwares = json.load(file)
|
||||||
return render_template('pokemon.html', data=softwares)
|
return render_template('pokemon.html', data=softwares)
|
||||||
|
|||||||
Reference in New Issue
Block a user