File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 66import requests # TODO: make this async
77import xmltodict
88from fastapi import APIRouter , BackgroundTasks , HTTPException , Request
9- from fastapi .responses import JSONResponse , RedirectResponse
9+ from fastapi .responses import JSONResponse , PlainTextResponse , RedirectResponse
1010
1111import database
1212from auth import crud
@@ -135,4 +135,4 @@ async def update_user(
135135 if not ok :
136136 raise HTTPException (status_code = 401 , detail = "Could not find user with session_id, please log in" )
137137
138- return "OK"
138+ return PlainTextResponse ( "ok" )
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ async def new_officer_term(
186186 ))
187187
188188 await db_session .commit ()
189- return PlainTextResponse ("success " )
189+ return PlainTextResponse ("ok " )
190190
191191@router .patch (
192192 "/info/{computing_id}" ,
You can’t perform that action at this time.
0 commit comments