aboutsummaryrefslogtreecommitdiff
path: root/api/user
diff options
context:
space:
mode:
Diffstat (limited to 'api/user')
-rw-r--r--api/user/status.py4
1 files changed, 2 insertions, 2 deletions
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