From a0b57aebdf9b84680051046fe852e85d8d3020b3 Mon Sep 17 00:00:00 2001 From: Alex Krantz Date: Fri, 28 Apr 2023 12:02:48 -0700 Subject: [PATCH] only return incomplete applications for participants --- api/registration/applications.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/registration/applications.py b/api/registration/applications.py index 13a0bd7f..3a56c06e 100644 --- a/api/registration/applications.py +++ b/api/registration/applications.py @@ -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)