From 39a01979a470e836da1128503e4587cb76eeae33 Mon Sep 17 00:00:00 2001 From: Karan Jayachandra Date: Fri, 4 Oct 2024 18:39:27 +0200 Subject: Added the randomization and the persistent memory --- app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app.py') diff --git a/app.py b/app.py index 7778b3e..16659ec 100644 --- a/app.py +++ b/app.py @@ -36,9 +36,10 @@ def home(): @app.route("/new-games", methods=["POST"]) def get_new_games(): + GAME_GENERATOR.create_games(PLAYER_LIST.get_active_players()) return render_template( "games.j2", - games=GAME_GENERATOR.create_games(PLAYER_LIST.get_active_players()), + games=GAME_GENERATOR.games, ) @@ -46,7 +47,7 @@ def get_new_games(): def get_list_of_games(): return render_template( "games.j2", - games=GAME_GENERATOR.create_games(PLAYER_LIST.get_active_players()), + games=GAME_GENERATOR.games, ) -- cgit v1.3.1