Commit 5e5aa565 authored by twanvl's avatar twanvl

vs-spoiler export template uses 'cards' instead of 'set.cards'

parent 2a645b7b
...@@ -137,7 +137,7 @@ script: ...@@ -137,7 +137,7 @@ script:
}</ul>" }</ul>"
} }
write_group := { write_group := {
cards := filter_list(set.cards, filter: { contains(match:sort_index(card:input), code) } ) cards := filter_list(cards, filter: { contains(match:sort_index(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>" +
...@@ -176,7 +176,7 @@ script: ...@@ -176,7 +176,7 @@ script:
write_group(title: "Location", code:"4") + write_group(title: "Location", code:"4") +
write_group(title: "Plot Twist", code:"5") write_group(title: "Plot Twist", code:"5")
else else
write_cards(cards: set.cards) write_cards(cards: cards)
} }
<script><!-- <script><!--
init(); init();
......
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