1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-11-29 02:18:59 +00:00

fix a few render_template calls

This commit is contained in:
Lynne Megido 2019-09-03 13:31:44 +10:00
parent 1f7bcf58db
commit be0a843c1a

View file

@ -70,7 +70,7 @@ def show_signup_page():
error = None
if 'error' in session:
error = session.pop('error')
return render_template("login.html", signup = True)
return render_template("login.html", signup = True, error = error)
@app.route("/settings")
def settings():
@ -146,7 +146,7 @@ def bot_accounts_add():
if session['step'] == 1:
if request.form['account'] == session['bot']:
error = "Bots cannot learn from themselves."
return render_template("bot_accounts_add.html", error)
return render_template("bot_accounts_add.html", error = error)
# look up user
handle_list = request.form['account'].split('@')
@ -186,8 +186,6 @@ def bot_accounts_add():
error = "Couldn't access ActivityPub outbox. {} may require authenticated fetches, which FediBooks doesn't support yet."
return render_template("bot_accounts_add.html", error = error)
return redirect("/bot/accounts/{}".format(session['bot']), 303)
return render_template("bot_accounts_add.html", error = error)
@app.route("/bot/accounts/toggle/<id>")