aboutsummaryrefslogtreecommitdiff
path: root/api/user/status.py
diff options
context:
space:
mode:
Diffstat (limited to 'api/user/status.py')
-rw-r--r--api/user/status.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/api/user/status.py b/api/user/status.py
index 219481a..050ed33 100644
--- a/api/user/status.py
+++ b/api/user/status.py
@@ -9,17 +9,17 @@ status = Blueprint('user_status', __name__)
@status.route('/status', methods=['POST'])
@auth_required("user")
def index(user_id):
- data = request.get_json()
- status = data.get("status") or ""
- if not status: return "", 400
+ 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], user_id]
- )
- connection.commit()
+ cursor.execute(
+ "update users set status = ? where user_id = ?",
+ [status[0:200], user_id]
+ )
+ connection.commit()
- return "", 200
+ return "", 200
dynamic_route = ["/user", status]