Skip to content

Commit ff2951c

Browse files
committed
Appeased linter
1 parent 057e405 commit ff2951c

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/main.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
import logging
22

3-
from fastapi import FastAPI
3+
from fastapi import FastAPI, Request, status
4+
from fastapi.encoders import jsonable_encoder
5+
from fastapi.exceptions import RequestValidationError
6+
from fastapi.responses import JSONResponse
47

58
import auth.urls
69
import database
710
import elections.urls
811
import officers.urls
912
import permission.urls
10-
from fastapi import FastAPI, Request, status
11-
from fastapi.encoders import jsonable_encoder
12-
from fastapi.exceptions import RequestValidationError
13-
from fastapi.responses import JSONResponse
14-
1513
import tests.urls
1614

1715
logging.basicConfig(level=logging.DEBUG)

src/permission/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ async def has_permission_or_raise(
7272
errmsg:str = "must have website admin permissions"
7373
) -> bool:
7474
if not await WebsiteAdmin.has_permission(db_session, computing_id):
75-
raise HTTPException(status_code=401, detail=errmsg)
75+
raise HTTPException(status_code=401, detail=errmsg)

0 commit comments

Comments
 (0)