Work that has already been maxed will not show up in the dropdown
This commit is contained in:
@@ -164,6 +164,7 @@ async def add_team_registration(request: Request, event_id: int, session: Sessio
|
||||
statement = select(TeamRegistration).where(
|
||||
TeamRegistration.person_name == person, TeamRegistration.work_type == work_type
|
||||
)
|
||||
# if the person has already registered for the same work type, just ignore
|
||||
if session.exec(statement).one_or_none() is None:
|
||||
registration = TeamRegistration(
|
||||
person_name=person,
|
||||
|
||||
Reference in New Issue
Block a user