From 5683d272bb8bc733e432609e2b735766be042cfe Mon Sep 17 00:00:00 2001 From: kagalenko-m-b <16374215+kagalenko-m-b@users.noreply.github.com> Date: Thu, 2 May 2024 19:20:58 +0300 Subject: [PATCH] Fix the select_problems() call --- src/MakeProblemSet.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MakeProblemSet.jl b/src/MakeProblemSet.jl index e3f53a6..d833c9a 100644 --- a/src/MakeProblemSet.jl +++ b/src/MakeProblemSet.jl @@ -78,12 +78,13 @@ function problemset_latex( rng_seed::Integer ) N = length(names) + M = length(problems) txt = "\\begin{document}\n" txt_sol = txt for n in 1:N txt *= "\\section{$(names[n])}\n" txt_sol *= "\\section{$(names[n])}\n" - problems_active = select_problems(subsets) + problems_active = select_problems(M, subsets) for p in problems_active Random.seed!(rng_seed + n + p) pr = problems[p]