From e5795e6a30871a06cb5f4c0398120a6115b3bef2 Mon Sep 17 00:00:00 2001 From: serguei Date: Fri, 5 Dec 2025 02:28:32 +0000 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'flask=5Fbase/app.p?= =?UTF-8?q?y'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flask_base/app.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/flask_base/app.py b/flask_base/app.py index ed0543d..d43bd9b 100644 --- a/flask_base/app.py +++ b/flask_base/app.py @@ -38,14 +38,10 @@ def get_leaderboard(): @app.route('/questions') def show_questions(): with open('./data/quizz.json', 'r') as file: - questions = json.load(file) + questions = json.load(file)["outils_list"] return render_template('quiz.html', questions=questions) -@app.route('/softwares_data') -def softwares_data(): - with open('./data/softwares.json', 'r') as file: - softwares = json.load(file) - return render_template('pokemon.html', data=softwares) + if __name__ == '__main__': app.run(debug=True, port=8080)