pep8 it
This commit is contained in:
+2
-1
@@ -2,6 +2,7 @@
|
||||
import json
|
||||
from flask import request, current_app, Response
|
||||
|
||||
|
||||
def check_api_key():
|
||||
api_keys = current_app.config.get("API_KEYS")
|
||||
if not api_keys:
|
||||
@@ -13,4 +14,4 @@ def check_api_key():
|
||||
return Response(
|
||||
response, 401,
|
||||
{'WWW-Authenticate': 'Basic realm="Login Required"'}
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user