tera icon indicating copy to clipboard operation
tera copied to clipboard

How to filter null values?

Open LitoMore opened this issue 1 year ago • 1 comments

I want to implement the solution for the https://github.com/getzola/zola/issues/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?

LitoMore avatar Nov 11 '24 10:11 LitoMore

I don't think it's doable right now

Keats avatar Nov 12 '24 10:11 Keats