Reset flash cookie also on index page.

This commit is contained in:
Leo Vasanko 2023-10-19 20:24:20 +03:00 committed by Leo Vasanko
parent 35038fca89
commit f969c2ccb4

View File

@ -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')