Add contestant export feature
Some checks failed
CI / scan_ruby (push) Failing after 1m5s
CI / scan_js (push) Successful in 13s
CI / lint (push) Successful in 13s
CI / test (push) Successful in 36s

This commit is contained in:
sto
2025-10-28 10:19:19 +01:00
parent 916c7af738
commit 1fa7bf10ec
7 changed files with 27 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
= CSV.generate_line [t("helpers.rank"), t("activerecord.attributes.contestant.name"), t("activerecord.attributes.contestant.display_time"), t("activerecord.attributes.contestant.completions")]
- @contestants.each_with_index do |contestant, index|
= CSV.generate_line([index + 1, contestant.name, contestant.display_time, contestant.completions.length])