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:
parent
1f7bcf58db
commit
be0a843c1a
1 changed files with 2 additions and 4 deletions
6
webui.py
6
webui.py
|
@ -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>")
|
||||
|
|
Loading…
Reference in a new issue