Added the flatten function to liquid

This commit is contained in:
frikky
2023-01-20 16:24:13 +01:00
parent 2eb22efdac
commit 4e7f26126b
+1 -1
View File
@@ -142,7 +142,7 @@ def escape(a):
def flatten(a):
a = list(a)
flat_list = [a for xs in xss for a in xs]
flat_list = [a for xs in a for a in xs]
return flat_list
@shuffle_filters.register