-
Notifications
You must be signed in to change notification settings - Fork 45
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
delete participant endpoint (fixes #170) #185
delete participant endpoint (fixes #170) #185
Conversation
backend/resources/participant.py
Outdated
db.session.delete(participant) | ||
db.session.commit() | ||
|
||
return {"message": "Participant deleted successfully."}, HTTPStatus.OK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No newline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Newline added
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to approve that, as that's minor, stylistic issue only.
Probably Black introduction will handle that for us in the future.
db.session.commit() | ||
|
||
return {"message": "Participant deleted successfully."}, HTTPStatus.OK | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some whitespaces in the last line (which should not be here).
No description provided.