Skip to content

Flask exercise - #4

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

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

Conversation

@alex-solovyev

Copy link
Copy Markdown
Owner

No description provided.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
OwnerAuthor

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 freeto 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

@alex-solovyev@aleksandr-semenov-dbp