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

delete participant endpoint (fixes #170) #185

Merged

Conversation

kristhina
Copy link
Member

No description provided.

db.session.delete(participant)
db.session.commit()

return {"message": "Participant deleted successfully."}, HTTPStatus.OK
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No newline

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Newline added

Copy link
Member

@magul magul left a 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

Copy link
Member

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).

@magul magul merged commit 5e8a4fe into CodeForPoznan:master Nov 9, 2019
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

Successfully merging this pull request may close these issues.

3 participants