Skip to content
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

How to filter null values? #945

Open
LitoMore opened this issue Nov 11, 2024 · 1 comment
Open

How to filter null values? #945

LitoMore opened this issue Nov 11, 2024 · 1 comment

Comments

@LitoMore
Copy link

LitoMore commented Nov 11, 2024

I want to implement the solution for the getzola/zola#2391.

My solution was:

set filtered_pages = paginator.pages | filter(attribute="extra.hide", value=null)

But the null won't work for null values.

Is there any way to filter those null items out?

@Keats
Copy link
Owner

Keats commented Nov 12, 2024

I don't think it's doable right now

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

No branches or pull requests

2 participants