diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..d98934d --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + 1761653356907 + + + + \ No newline at end of file diff --git a/src/app.py b/src/app.py index 4ebb1d9..7361a29 100644 --- a/src/app.py +++ b/src/app.py @@ -38,6 +38,48 @@ "schedule": "Mondays, Wednesdays, Fridays, 2:00 PM - 3:00 PM", "max_participants": 30, "participants": ["john@mergington.edu", "olivia@mergington.edu"] + }, + + # Sports-related activities + "Soccer Team": { + "description": "Competitive soccer practices and matches", + "schedule": "Mondays, Wednesdays, 4:00 PM - 6:00 PM", + "max_participants": 22, + "participants": ["alex@mergington.edu", "nina@mergington.edu"] + }, + "Basketball Club": { + "description": "Casual and competitive basketball sessions", + "schedule": "Tuesdays, Thursdays, 4:00 PM - 6:00 PM", + "max_participants": 18, + "participants": ["leo@mergington.edu"] + }, + + # Artistic activities + "Art Club": { + "description": "Explore drawing, painting, and mixed media projects", + "schedule": "Wednesdays, 3:30 PM - 5:00 PM", + "max_participants": 16, + "participants": ["maya@mergington.edu", "liam@mergington.edu"] + }, + "Drama Club": { + "description": "Acting workshops and school play productions", + "schedule": "Fridays, 3:30 PM - 5:30 PM", + "max_participants": 25, + "participants": ["sarah@mergington.edu"] + }, + + # Intellectual activities + "Debate Team": { + "description": "Prepare for interschool debates and improve public speaking", + "schedule": "Thursdays, 3:30 PM - 5:00 PM", + "max_participants": 14, + "participants": ["oliver@mergington.edu", "ava@mergington.edu"] + }, + "Science Club": { + "description": "Hands-on experiments, science fairs, and guest lectures", + "schedule": "Mondays, 3:30 PM - 5:00 PM", + "max_participants": 20, + "participants": ["ethan@mergington.edu"] } } @@ -54,6 +96,7 @@ def get_activities(): @app.post("/activities/{activity_name}/signup") def signup_for_activity(activity_name: str, email: str): + # Validate student is not already signed up for the activity """Sign up a student for an activity""" # Validate activity exists if activity_name not in activities: