File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 11import 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
58import auth .urls
69import database
710import elections .urls
811import officers .urls
912import 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-
1513import tests .urls
1614
1715logging .basicConfig (level = logging .DEBUG )
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments