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

Change hardcoded HTTP codes to HTTPStatus enums #331

Conversation

EvilDrPurple
Copy link

Fixes

Description

  • All hard coded HTTP status codes have been replaced with HTTPStatus enums
  • I also removed a duplicate line on line 68 of User.py that I assumed wasn't meant to be there, but figured I'd mention in case it was

Copy link
Contributor

@maxachis maxachis left a comment

Choose a reason for hiding this comment

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

Code looks good, but gotta remake the PR so it instead goes into the dev branch of https://github.com/Police-Data-Accessibility-Project/data-sources-app-v2 . It's an easy mistake to make, and goodness knows I've done it a few times myself!

@EvilDrPurple EvilDrPurple deleted the 319-replace-hardcoded-http-status-values-with-httphttpstatus branch June 18, 2024 21:24
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.

Replace Hardcoded HTTP Status values with http.HTTPStatus
2 participants