Skip to content

Commit 51d17a6

Browse files
committed
update names
1 parent 822c0dc commit 51d17a6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/elections/urls.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async def list_elections(
6565
return JSONResponse(election_metadata_list)
6666

6767
@router.get(
68-
"/by_name/{name:str}",
68+
"/by_name/{election_name:str}",
6969
description="""
7070
Retrieves the election data for an election by name.
7171
Returns private details when the time is allowed.
@@ -169,7 +169,7 @@ def _raise_if_bad_election_data(
169169
)
170170

171171
@router.post(
172-
"/by_name/{name:str}",
172+
"/by_name/{election_name:str}",
173173
description="Creates an election and places it in the database. Returns election json on success",
174174
)
175175
async def create_election(
@@ -241,7 +241,7 @@ async def create_election(
241241
return JSONResponse(election.private_details(current_time))
242242

243243
@router.patch(
244-
"/by_name/{name:str}",
244+
"/by_name/{election_name:str}",
245245
description="""
246246
Updates an election in the database.
247247
@@ -306,7 +306,7 @@ async def update_election(
306306
return JSONResponse(election.private_details(current_time))
307307

308308
@router.delete(
309-
"/by_name/{name:str}",
309+
"/by_name/{election_name:str}",
310310
description="Deletes an election from the database. Returns whether the election exists after deletion."
311311
)
312312
async def delete_election(

0 commit comments

Comments
 (0)