Commit 7b9ba27f authored by Joachim Schunk's avatar Joachim Schunk
Browse files


parent 1d702f42
Pipeline #105955 passed with stages
in 2 minutes and 23 seconds
......@@ -10,7 +10,7 @@
(partial modify-exercise-field-vec exercise [:core :calculations]))
(defn set-missing-error-relative [exercise]
((modify-calculations exercise) #(assoc % :error-relative (or (:error-relative %) 1))))
((modify-calculations exercise) #(if-not (contains? % :error-relative) (assoc % :error-relative 1) %)))
(defn convert-numbers [exercise]
((modify-calculations exercise) convert-number-to-object))
Supports Markdown
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