diff --git a/templates/settings.html b/templates/settings.html index 10c1712..0b3e9a5 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -20,7 +20,7 @@
- +
@@ -33,35 +33,35 @@
- - + + +
- - + + +
diff --git a/webui.py b/webui.py index 294f740..b7352e5 100644 --- a/webui.py +++ b/webui.py @@ -69,7 +69,11 @@ def show_signup_page(error = None): @app.route("/settings") def settings(): - return render_template("settings.html") + dc = mysql.connection.cursor(MySQLdb.cursors.DictCursor) + dc.execute("SELECT * FROM `users` WHERE id = %s", (session['user_id'],)) + user = dc.fetchone() + dc.close() + return render_template("settings.html", user = user) @app.route("/bot/edit/") def bot_edit(id):