Reset flash cookie also on index page.
This commit is contained in:
parent
35038fca89
commit
f969c2ccb4
|
@ -39,6 +39,9 @@ async def index_page(request):
|
||||||
flash = request.cookies.flash
|
flash = request.cookies.flash
|
||||||
if flash:
|
if flash:
|
||||||
index += str(E.div(flash, id="flash"))
|
index += str(E.div(flash, id="flash"))
|
||||||
|
res = html(index)
|
||||||
|
res.cookies.delete_cookie("flash")
|
||||||
|
return res
|
||||||
return html(index)
|
return html(index)
|
||||||
|
|
||||||
@app.websocket('/api/upload')
|
@app.websocket('/api/upload')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user