Skip to content

Commit 020490d

Browse files
committed
return PlaintextResponse
1 parent 443cc3c commit 020490d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/auth/urls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import requests # TODO: make this async
77
import xmltodict
88
from fastapi import APIRouter, BackgroundTasks, HTTPException, Request
9-
from fastapi.responses import JSONResponse, RedirectResponse
9+
from fastapi.responses import JSONResponse, PlainTextResponse, RedirectResponse
1010

1111
import database
1212
from 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")

src/officers/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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}",

0 commit comments

Comments
 (0)