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?
to your account
It would be great if the map filter would return an optional default value if the attribute is not defined.
The text was updated successfully, but these errors were encountered:
Hi @DanyC97 and @Yannik thanks for raising this! :) it's been so long that the MR has conflicts. I will try to solve them asap
Sorry, something went wrong.
Are there any news regarding this feature? Why was the pulled request closed? Should someone else take over or is this just undesired?
I closed the pull request myself as I do not have any further interest pursuing it. Please feel free to contribute with another PR.
I would love to see this implemented
Working on this in Pycon 2019 Sprints
Updating changelog for issue pallets#557
Is it a good idea to add 'default' param to the 'attr' filter as well? As a shorthand for someVal | attr('someAttr') | default(10)
someVal | attr('someAttr') | default(10)
Successfully merging a pull request may close this issue.