From a73ef14133d500a61ef9e1c5d7f49ebb6529a23f Mon Sep 17 00:00:00 2001 From: lonkaars Date: Thu, 25 Mar 2021 21:50:57 +0100 Subject: smol fix --- api/user/status.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api/user') diff --git a/api/user/status.py b/api/user/status.py index 030a4ef..3adb013 100644 --- a/api/user/status.py +++ b/api/user/status.py @@ -7,12 +7,12 @@ status = Blueprint('user_status', __name__) @status.route('/status', methods = ['POST']) @auth_required("user") -def index(): +def index(user_id): data = request.get_json() status = data.get("status") or "" if not status: return "", 400 - cursor.execute("update users set status = ? where user_id = ?", [status[0:200], login]) + cursor.execute("update users set status = ? where user_id = ?", [status[0:200], user_id]) connection.commit() return "", 200 -- cgit v1.2.3