diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-04-11 18:03:11 +0200 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-04-11 18:03:11 +0200 |
commit | deb09e5c749e3353c927d7fe94bbd35f25ff85ee (patch) | |
tree | 702ba982530aa98a96ddece365a32be842dae3c2 /api/user/avatar.py | |
parent | 28f104de9ae9abe4b42abafbf3865ede5687996c (diff) |
dprint yapf continuation align style edit
Diffstat (limited to 'api/user/avatar.py')
-rw-r--r-- | api/user/avatar.py | 4 |
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 |