Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Mistake in firestore numeric increment example for python #2374

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

Closed
fronbasal opened this issue Aug 29, 2019 · 3 comments · Fixed by #2427
Closed

Mistake in firestore numeric increment example for python #2374

fronbasal opened this issue Aug 29, 2019 · 3 comments · Fixed by #2427
Assignees

Comments

@fronbasal
Copy link

fronbasal commented Aug 29, 2019

In which file did you encounter the issue?

´python-docs-samples/firestore/cloud-client/snippets.py

Did you change the file? If so, how?

Line 884:

-washington_ref.update("population", firestore.Increment(50))
+washington_ref.update({"population": firestore.Increment(50)})

(the update parameters need to be passed as a dict)

Describe the issue

The original command raises an exception.

@BenWhitehead
Copy link
Contributor

Thanks for the heads up on this sample, I've posted a PR with the fix.

@fronbasal
Copy link
Author

Awesome. Thank you!

@fronbasal
Copy link
Author

I think we can close this issue now. Thanks to @BenWhitehead for writing the PR.

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 a pull request may close this issue.

2 participants