archive
/
actioner
Archived
1
Fork 0

Remove unused imports

This commit is contained in:
Jake Howard 2019-08-30 21:52:39 +01:00
parent 1f8dbf310d
commit 9fd854dfe4
Signed by: jake
GPG Key ID: 57AFB45680EDD477
2 changed files with 1 additions and 5 deletions

View File

@ -1,5 +1,3 @@
import asyncio
from apscheduler.executors.pool import ProcessPoolExecutor
from apscheduler.schedulers.blocking import BlockingScheduler
from apscheduler.triggers.interval import IntervalTrigger

View File

@ -4,8 +4,7 @@ import uvicorn
from starlette.applications import Starlette
from starlette.authentication import SimpleUser, requires # or a custom user model
from starlette.middleware.authentication import AuthenticationMiddleware
from starlette.responses import PlainTextResponse
from starlette.routing import Route, Router
from starlette.routing import Route
from starlette_auth_toolkit.base.backends import BaseBasicAuth
from actioner.settings import BASIC_AUTH
@ -15,7 +14,6 @@ from .healthcheck import healthcheck
class BasicAuth(BaseBasicAuth):
async def verify(self, username: str, password: str):
print(username, password)
if [username, password] != BASIC_AUTH:
return None
return SimpleUser(username)