Skip to content

Commit 2a5f562

Browse files
committed
fix(Elections): duplicate operation id in nominees URLs
1 parent d4a2fde commit 2a5f562

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/nominees/urls.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
NomineeInfoUpdateParams,
99
)
1010
from nominees.tables import NomineeInfo
11-
from utils.shared_models import DetailModel, SuccessResponse
11+
from utils.shared_models import DetailModel
1212
from utils.urls import admin_or_raise
1313

1414
router = APIRouter(
@@ -23,7 +23,7 @@
2323
responses={
2424
403: { "description": "need to be an admin", "model": DetailModel }
2525
},
26-
operation_id="create_nominee"
26+
operation_id="get_all_nominees"
2727
)
2828
async def get_all_nominees(
2929
request: Request,
@@ -97,7 +97,7 @@ async def get_nominee_info(
9797

9898
@router.delete(
9999
"/{computing_id:str}",
100-
description="Nominee info is always publically tied to election, so be careful!",
100+
description="Delete a nominee",
101101
operation_id="delete_nominee"
102102
)
103103
async def delete_nominee_info(

0 commit comments

Comments
 (0)