Skip to content

Removed Redundant Code#1

Open
ArunVenkata wants to merge 1 commit intojabahum:masterfrom
ArunVenkata:master
Open

Removed Redundant Code#1
ArunVenkata wants to merge 1 commit intojabahum:masterfrom
ArunVenkata:master

Conversation

@ArunVenkata
Copy link
Copy Markdown

  • Saved you an indent
  • Use '.get' instead of string indexing when using dictionaries as it wont throw error
  • No need to check for method=="POST" as the API accepts only post requests as mentioned in '@app.route('/submit', methods=['POST'])'
  • Also added fstring since it is a more pythonic way of code writing

* Saved you an indent
* Use '.get' instead of string indexing when using dictionaries as it wont throw error
* No need to check for method=="POST" as the API accepts only post requests as mentioned in '@app.route('/submit', methods=['POST'])'
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.

1 participant