From 22c62bb513edf65eda03b186cbe0b616778bfa2c Mon Sep 17 00:00:00 2001 From: Tibor Bizjak Date: Thu, 12 Sep 2019 13:00:25 +0200 Subject: [PATCH] Added redirect after post --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 59df072..120d1d6 100644 --- a/main.py +++ b/main.py @@ -47,7 +47,7 @@ def move(): else: AN = request.forms.get("move") valid = games[id].AN_move(AN) - return template(TEMPLATE, game=games[id], valid=valid) + redirect("/game/") run(host="localhost", port=8080)