summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSanto Cariotti <dcariotti24@gmail.com>2020-03-27 20:39:25 +0100
committerSanto Cariotti <dcariotti24@gmail.com>2020-03-27 21:08:24 +0100
commitaf205a074dc1c52b45c463ac9671fd729d8055c1 (patch)
treeb54424e19fef656ffd5041ccb67a1bf4d497bfee /src
parentf3348678b43dc407001032a011ba29b2e5a29c31 (diff)
style: black format for decorators file
Diffstat (limited to 'src')
-rw-r--r--src/frest/decorators.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frest/decorators.py b/src/frest/decorators.py
index f00de2c..7ce79d7 100644
--- a/src/frest/decorators.py
+++ b/src/frest/decorators.py
@@ -1,4 +1,4 @@
-from flask import request, abort
+from flask import request, abort
from auth.models import Token
from functools import wraps
@@ -6,7 +6,7 @@ from functools import wraps
def check_token(f):
@wraps(f)
def inner(*args, **kwargs):
- userid = request.url.split('/')[-1]
+ userid = request.url.split("/")[-1]
headers = request.headers
if not headers.get("Authorization"):
abort(403)