This commit is contained in:
parent
2f0dd2ab9f
commit
d96dfa8800
@ -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
|
||||
|
||||
|
@ -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/<user_id>/profile")
|
||||
@token_auth
|
||||
|
Loading…
Reference in New Issue
Block a user