Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Commit

Permalink
only return incomplete applications for participants
Browse files Browse the repository at this point in the history
  • Loading branch information
akrantz01 committed Apr 28, 2023
1 parent 4865fca commit a0b57ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/registration/applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ async def list_incomplete(db: AsyncSession = Depends(with_db)):
select(Participant)
.outerjoin(Application, full=True)
.where(Application.participant_id == None)
.where(Participant.role == Role.Participant)
)

result = await db.execute(statement)
Expand Down

0 comments on commit a0b57ae

Please sign in to comment.