Commit 79b637aa authored by Joachim Schunk's avatar Joachim Schunk

ensure :error-relative is number

parent 540dae1b
Pipeline #47636 failed with stages
in 2 minutes and 17 seconds
......@@ -11,7 +11,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) #(assoc % :error-relative (or (:error-relative %) 1))))
(defn convert-numbers [exercise]
((modify-calculations exercise) convert-number-to-object))
......
......@@ -28,7 +28,7 @@
:number {:significand nil :order-of-magnitude "0"}
:correct-points 0
:incorrect-points 0
:error-relative "1"})
:error-relative 1})
(defn set-prop-in-all-calcs [prop-key value calc-cursor]
(dorun (map-indexed
......
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