From ec1a69580184d02dc1adedad5c40547bae7f34df Mon Sep 17 00:00:00 2001 From: furtest Date: Fri, 5 Dec 2025 05:15:23 +0100 Subject: [PATCH] =?UTF-8?q?R=C3=A9pare=20le=20pokemon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flask_base/app.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/flask_base/app.py b/flask_base/app.py index 9c6e3f3..79c7b0d 100644 --- a/flask_base/app.py +++ b/flask_base/app.py @@ -38,19 +38,18 @@ def get_leaderboard(): @app.route('/questions') def show_questions(): with open('./data/quizz.json', 'r') as file: - #questions = json.load(file)["outils_list"] questions = json.load(file) return render_template('quiz.html', questions=questions) - - @app.route('/') def main(): return render_template('index.html') @app.route('/pokemon') def poke(): - return render_template('pokemon.html') + with open('./data/softwares.json', 'r') as file: + softwares = json.load(file)["outils_list"] + return render_template('pokemon.html', data=softwares) @app.route('/PAI') def pai():