Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bell Schedule Creation Endpoint will crash if not provided with a school ID in the request body #25

Open
MoralCode opened this issue Mar 10, 2023 · 0 comments

Comments

@MoralCode
Copy link
Owner

school = SchoolDB.query.filter_by(id=school_id).first()

this can be reproduced by creating a schedule without selecting a school in the admin UI.

This should return at LEAST a sane error message on the backend.
The frontend should also include validation to ensure the form cant be submitted without specifying a school.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant