From 3341f3e456dc93e3be98f15d23efb38ed9f8bd01 Mon Sep 17 00:00:00 2001 From: Tibor Bizjak Date: Wed, 11 Sep 2019 01:10:53 +0200 Subject: [PATCH] Fixed minor bugs --- main.py | 1 + template.html | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 518c3c8..0b95d32 100644 --- a/main.py +++ b/main.py @@ -34,6 +34,7 @@ def move(): id = request.get_cookie("gameid", secret=KEY) valid = True if is_submitted("newgame"): + del games[id] redirect("/") if is_submitted("prev"): games[id].prev() diff --git a/template.html b/template.html index bbabcb7..4249616 100644 --- a/template.html +++ b/template.html @@ -76,11 +76,13 @@ input[type="text"] { % if not game.endofgame(): -% else: - % end +
+ +
+