From d96dfa8800737064e5a16f4b065f7d7e6be1eaf4 Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Mon, 21 Jun 2021 21:22:39 +0200 Subject: [PATCH] fix code style --- README.md | 4 ++-- ki/routes.py | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f902575..155198f 100644 --- a/README.md +++ b/README.md @@ -47,9 +47,9 @@ flake8 Um ein einheitliches Quellcode-Erlebnis zu haben, kann der Code mit yapf neu formatiert werden: -''' +``` yapf -i --recursive ki/ -''' +``` ### Testbenutzer diff --git a/ki/routes.py b/ki/routes.py index 88dfe18..b07c2d1 100644 --- a/ki/routes.py +++ b/ki/routes.py @@ -99,11 +99,8 @@ def login(): if token is None: return make_response({}, 403) - return make_response( - { - "token": token.token, - "user_id": token.user_id - }) + return make_response({"token": token.token, "user_id": token.user_id}) + @app.route("/users//profile") @token_auth