File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ async def get_election_registrations(
4040 db_session : database .DBSession ,
4141 election_name : str
4242):
43- _ , computing_id = await logged_in_or_raise (request , db_session )
43+ await logged_in_or_raise (request , db_session )
4444
4545 slugified_name = slugify (election_name )
4646 if await elections .crud .get_election (db_session , slugified_name ) is None :
@@ -49,7 +49,7 @@ async def get_election_registrations(
4949 detail = f"election with slug { slugified_name } does not exist"
5050 )
5151
52- registration_list = await registrations .crud .get_all_registrations_of_user (db_session , computing_id , slugified_name )
52+ registration_list = await registrations .crud .get_all_registrations_in_election (db_session , slugified_name )
5353 if registration_list is None :
5454 return JSONResponse ([])
5555 return JSONResponse ([
You can’t perform that action at this time.
0 commit comments