summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
authorKaran Jayachandra <karan.jayachandra@nxp.com>2024-10-04 18:39:27 +0200
committerKaran Jayachandra <karan.jayachandra@nxp.com>2024-10-04 18:39:27 +0200
commit39a01979a470e836da1128503e4587cb76eeae33 (patch)
treefb77504a341af38242572de7d72758da943cd938 /app.py
parent88d7300021cd3963f2d6a6202609b0f6e956cdab (diff)
Added the randomization and the persistent memory
Diffstat (limited to 'app.py')
-rw-r--r--app.py5
1 files changed, 3 insertions, 2 deletions
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,
)