From af205a074dc1c52b45c463ac9671fd729d8055c1 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Fri, 27 Mar 2020 20:39:25 +0100 Subject: style: black format for decorators file --- src/frest/decorators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) -- cgit v1.2.3-18-g5258