diff --git a/app/webui.py b/app/webui.py index f6feb19..5ec1038 100644 --- a/app/webui.py +++ b/app/webui.py @@ -99,7 +99,7 @@ def bot_toggle(id): c.execute("UPDATE `bots` SET `enabled` = NOT `enabled` WHERE `handle` = %s", (id,)) mysql.connection.commit() c.close() - return redirect(url_for("home"), 303) + return redirect(url_for("render_home"), 303) @app.route("/bot/chat/") def bot_chat(id):