@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baravak/risloo-profile-cli",
3
- "version": "4.4.1",
3
+ "version": "4.4.2",
4
4
  "description": "**Risloo Profile CLI** is a library for creating profiles, reports and sheets for *psychological* samples.",
5
5
  "main": "bin/risloo.js",
6
6
  "publishConfig": {
@@ -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(parseInt(e.user_answered) === 1){
172
+ if(user_answered === 1){
172
173
  items[fs][mod[i % 2]].critical[1].push(id)
173
174
  }
174
- if(parseInt(e.user_answered) === 2){
175
+ if(user_answered === 2){
175
176
  items[fs][mod[i % 2]].critical[0].push(id)
176
177
  }
177
178
  }else{
178
- if(parseInt(e.user_answered) === 5){
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){