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 +
+ +
+