Skip to content

Flask exercise#4

Open
alex-solovyev wants to merge 2 commits intofeature/filter_mapfrom
feature/flask
Open

Flask exercise#4
alex-solovyev wants to merge 2 commits intofeature/filter_mapfrom
feature/flask

Conversation

@alex-solovyev
Copy link
Owner

No description provided.

@app.delete("/user/<string:name>")
def delete_user(name: str) -> tuple:
FlaskExercise.abort_if_user_not_found(name)
FlaskExercise.users.pop(name)

Choose a reason for hiding this comment

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

pop() выполняет две операции - del и возврат удаленного. Здесь нужна только первая

Copy link
Owner Author

Choose a reason for hiding this comment

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

replaced pop with del

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.

2 participants