File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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)
175175async 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)
312312async def delete_election (
You can’t perform that action at this time.
0 commit comments