diff options
| author | lonkaars <l.leblansch@gmail.com> | 2021-03-25 21:50:57 +0100 | 
|---|---|---|
| committer | lonkaars <l.leblansch@gmail.com> | 2021-03-25 21:50:57 +0100 | 
| commit | a73ef14133d500a61ef9e1c5d7f49ebb6529a23f (patch) | |
| tree | 5641f6b3358c8e1db49868e92d9c19af1d16cccf /api | |
| parent | 390f822a7257b03fe721f556b150b5c23a5aa0ae (diff) | |
smol fix
Diffstat (limited to 'api')
| -rw-r--r-- | api/user/status.py | 4 | 
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 |