@baravak/risloo-profile-cli 4.4.1 → 4.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/samples/YPI93.js +7 -6
package/package.json
CHANGED
package/src/samples/YPI93.js
CHANGED
|
@@ -167,20 +167,21 @@ class YPI93 extends Profile {
|
|
|
167
167
|
dataset.questions.forEach((e, i) => {
|
|
168
168
|
const id = Math.round((i-1) /2) + 1
|
|
169
169
|
const fs = Items[id]
|
|
170
|
+
const user_answered = parseInt(e.user_answered)
|
|
170
171
|
if(fs === 'ed'){
|
|
171
|
-
if(
|
|
172
|
+
if(user_answered === 1){
|
|
172
173
|
items[fs][mod[i % 2]].critical[1].push(id)
|
|
173
174
|
}
|
|
174
|
-
if(
|
|
175
|
+
if(user_answered === 2){
|
|
175
176
|
items[fs][mod[i % 2]].critical[0].push(id)
|
|
176
177
|
}
|
|
177
178
|
}else{
|
|
178
|
-
if(
|
|
179
|
-
items[fs][mod[i % 2]].critical[1].push(id)
|
|
180
|
-
}
|
|
181
|
-
if(parseInt(e.user_answered) === 6){
|
|
179
|
+
if(user_answered === 5){
|
|
182
180
|
items[fs][mod[i % 2]].critical[0].push(id)
|
|
183
181
|
}
|
|
182
|
+
if(user_answered === 6){
|
|
183
|
+
items[fs][mod[i % 2]].critical[1].push(id)
|
|
184
|
+
}
|
|
184
185
|
}
|
|
185
186
|
})
|
|
186
187
|
for(const f in items){
|