Commit 87184ad3 authored by twanvl's avatar twanvl

Fixed export template grouping yet again

parent 112999ad
...@@ -148,7 +148,11 @@ script: ...@@ -148,7 +148,11 @@ script:
}</ul>" }</ul>"
} }
write_group := { write_group := {
cards := filter_list(set.cards, filter: { contains(color_of_card(card:input), match:code) } ) cards := filter_list(set.cards, filter:
if code == "L"
then { contains(color_of_card(card:input), match:"L") }
else { color_of_card(card:input) == code }
)
count := number_of_items(in:cards) count := number_of_items(in:cards)
if count > 0 then if count > 0 then
"<h2>{title} ({count} {if count == 1 then "card" else "cards"})</h2>" + "<h2>{title} ({count} {if count == 1 then "card" else "cards"})</h2>" +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment