Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

📝 Update Request Body'stutorial002 to deal withtax=0 case#13230

Merged
tiangolo merged 3 commits intofastapi:masterfrom
togogh:patch-1
Jan 30, 2025
Merged

📝 Update Request Body'stutorial002 to deal withtax=0 case#13230
tiangolo merged 3 commits intofastapi:masterfrom
togogh:patch-1

Conversation

@togogh
Copy link
Contributor

Before this commit, price_with_tax was not included in the response body when tax=0, because the "if item.tax" condition gets set to false

image

Changing the condition to "if item.tax is not None" solves this issue

image

…tax=0Before this commit, price_with_tax was not included in the response body when tax=0, because the "if item.tax" condition gets set to false. Changing the condition to "if item.tax is not None" solves this issue
@github-actionsgithub-actionsbot added the docsDocumentation about how to use FastAPI labelJan 18, 2025
@github-actions
Copy link
Contributor

📝 Docs preview for commit4fed048 at:https://e2e4d18f.fastapitiangolo.pages.dev

@svlandegsvlandeg changed the titlebugfix: updated tutorial002_py310.py for tax=0 situation📝 Update Request Bodytutorial002_py310.py fortax=0 situationJan 23, 2025
@svlandegsvlandeg changed the title📝 Update Request Bodytutorial002_py310.py fortax=0 situation📝 Update Request Body'stutorial002 to deal withtax=0 caseJan 23, 2025
@svlandegsvlandeg self-assigned thisJan 23, 2025
Copy link
Member

@svlandegsvlandeg left a comment

Choose a reason for hiding this comment

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

Thanks, makes sense to fine-tune this docs example to cover the case wheretax is explicitely0.0. I've gone ahead and pushed the same edit also totutorial002.py to keep both files in sync.

tiangolo reacted with rocket emoji
@github-actions
Copy link
Contributor

📝 Docs preview for commitaf4029d at:https://dfabdbdc.fastapitiangolo.pages.dev

@svlandegsvlandeg removed their assignmentJan 23, 2025
@github-actions
Copy link
Contributor

📝 Docs preview for commitd7417b9 at:https://d29af659.fastapitiangolo.pages.dev

Copy link
Member

@tiangolotiangolo left a comment

Choose a reason for hiding this comment

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

Thanks! 🤓

@tiangolotiangolo merged commit9667ce8 intofastapi:masterJan 30, 2025
50 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@tiangolotiangolotiangolo approved these changes

@svlandegsvlandegsvlandeg approved these changes

Assignees

No one assigned

Labels

docsDocumentation about how to use FastAPI

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@togogh@tiangolo@svlandeg

Comments


[8]ページ先頭

©2009-2026 Movatter.jp