Commit Graph

13 Commits (aefb9c30f121d069485b23eb34712659e7e3acd9)

Author SHA1 Message Date
Cyb3rL1z4rd aefb9c30f1
Filter out old events when fetching them (#23)
* Update events.py

Update events.py to only display events less than an hour past their start time.

* Update events.py

* Update backend-flask/events.py

Co-authored-by: HumanoidSandvichDispenser <25856867+HumanoidSandvichDispenser@users.noreply.github.com>

* Update backend-flask/events.py

Co-authored-by: HumanoidSandvichDispenser <25856867+HumanoidSandvichDispenser@users.noreply.github.com>

---------

Co-authored-by: HumanoidSandvichDispenser <25856867+HumanoidSandvichDispenser@users.noreply.github.com>
2025-05-21 09:58:38 -07:00
John Montagu, the 4th Earl of Sandvich a6ff9a7291
Add option to include unassigned players in events 2025-05-17 23:46:27 -07:00
John Montagu, the 4th Earl of Sandvich fcf8f7e3ce
fix: Fix events not showing 2025-05-13 13:13:06 -07:00
John Montagu, the 4th Earl of Sandvich ad45e1530e
fix(backend): Ensure event details are updated
Fixed an issue where event name and description were not being updated
correctly from the provided JSON data in the update_event function.
2024-12-07 17:25:09 -08:00
John Montagu, the 4th Earl of Sandvich f0e2e28d65
feat: Add attendance options dropdown 2024-11-30 22:26:28 -08:00
John Montagu, the 4th Earl of Sandvich a2712504e2
fix: Player participation not actually updating 2024-11-30 20:02:18 -08:00
John Montagu, the 4th Earl of Sandvich bb82f20a47
feat: Add delete event functionality
- Add delete_event endpoint in backend-flask
- Add cascade delete-orphan to Event model relationship
2024-11-30 19:01:23 -08:00
John Montagu, the 4th Earl of Sandvich 7043877a9f
Add updating events 2024-11-30 13:08:42 -08:00
John Montagu, the 4th Earl of Sandvich 6f49053dac
feat: Add event details in roster builder 2024-11-29 00:06:34 -08:00
John Montagu, the 4th Earl of Sandvich e1c6a7bb14
Implement event stuff 2024-11-27 01:03:41 -08:00
John Montagu, the 4th Earl of Sandvich eee3241cae
Add events in frontend 2024-11-24 10:47:45 -08:00
John Montagu, the 4th Earl of Sandvich 061499b822
Add additional arguments to decorator
This allows for `@requires_team_membership()` to be able to
retrieve the team_id from a JSON or query parameter.
2024-11-21 18:18:43 -08:00
John Montagu, the 4th Earl of Sandvich ea030e012d
Add event management endpoints
- Implemented endpoints for creating, retrieving, and managing events.
- Added `EventSchema` for event serialization and deserialization.
- Updated `Event` model to include relationships with `PlayerEvent` and `Team`.
- Modified `Player` and `Team` models to include relationships with `Event`.
- Added new file `events.py` to handle event-related API routes.
2024-11-20 15:12:44 -08:00