From f969c2ccb42080e100ced121a58b1dab13982da2 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Thu, 19 Oct 2023 20:24:20 +0300 Subject: [PATCH] Reset flash cookie also on index page. --- cista/app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cista/app.py b/cista/app.py index fa66168..b2e28a9 100755 --- a/cista/app.py +++ b/cista/app.py @@ -39,6 +39,9 @@ async def index_page(request): flash = request.cookies.flash if flash: index += str(E.div(flash, id="flash")) + res = html(index) + res.cookies.delete_cookie("flash") + return res return html(index) @app.websocket('/api/upload')