summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)