aboutsummaryrefslogtreecommitdiff
path: root/api/user/avatar.py
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-04-11 18:03:11 +0200
committerlonkaars <l.leblansch@gmail.com>2021-04-11 18:03:11 +0200
commitdeb09e5c749e3353c927d7fe94bbd35f25ff85ee (patch)
tree702ba982530aa98a96ddece365a32be842dae3c2 /api/user/avatar.py
parent28f104de9ae9abe4b42abafbf3865ede5687996c (diff)
dprint yapf continuation align style edit
Diffstat (limited to 'api/user/avatar.py')
-rw-r--r--api/user/avatar.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/user/avatar.py b/api/user/avatar.py
index 1b5500a..b034c3e 100644
--- a/api/user/avatar.py
+++ b/api/user/avatar.py
@@ -28,14 +28,14 @@ def get_avatar():
@avatar.route(
- '/avatar', methods=["POST"]
+ '/avatar', methods=["POST"]
) #TODO: pillow image size validation (client side resize)
@auth_required("user")
def update_avatar(login):
if not request.data: return "", 400
open(f"database/avatars/{login}.png",
- "wb").write(decode(request.data, "base64"))
+ "wb").write(decode(request.data, "base64"))
return "", 200