Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
components
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
7
Issues
7
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Wandelwerk-Software
libraries
components
Commits
79b637aa
Commit
79b637aa
authored
Sep 12, 2020
by
Joachim Schunk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ensure :error-relative is number
parent
540dae1b
Pipeline
#47636
failed with stages
in 2 minutes and 17 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/cljc/lernmeister/components/exercise_types/calculation/migrate.cljc
...eister/components/exercise_types/calculation/migrate.cljc
+1
-1
src/cljs/lernmeister/components/exercise_types/calculation/views/edit.cljs
...ter/components/exercise_types/calculation/views/edit.cljs
+1
-1
No files found.
src/cljc/lernmeister/components/exercise_types/calculation/migrate.cljc
View file @
79b637aa
...
...
@@ -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
))
...
...
src/cljs/lernmeister/components/exercise_types/calculation/views/edit.cljs
View file @
79b637aa
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment