1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-11-25 16:48:58 +00:00

add favicon to fix a very weird bug

This commit is contained in:
Lynne Megido 2019-09-10 17:00:14 +10:00
parent fb1f05d96b
commit 28ca5c3d83
2 changed files with 7 additions and 0 deletions

BIN
static/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

View file

@ -546,6 +546,13 @@ def report_bug():
def img_bot_generic(): def img_bot_generic():
return send_file("static/bot_generic.png", mimetype="image/png") return send_file("static/bot_generic.png", mimetype="image/png")
@app.route("/favicon.ico")
def favicon():
# so there's a weird bug where one of my firefox installs wants the favicon, and when it can't find it, it requests /
# requesting / resets your session['step'] to 1, which breaks all the multi-step things.
# so we need to give it a favicon.
return send_file("static/favicon.ico")
def bot_check(bot): def bot_check(bot):
# check to ensure bot is owned by user # check to ensure bot is owned by user
c = mysql.connection.cursor() c = mysql.connection.cursor()