Skip to content

Commit

Permalink
Merge pull request #1562 from NicoPennec/fix/episode-stats
Browse files Browse the repository at this point in the history
Fix retake stats CSV export
  • Loading branch information
NicoPennec authored Oct 25, 2024
2 parents 25280a7 + 13bbd80 commit f119ef0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/lib/csv.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,13 @@ const csv = {
total,
lineMap
)
} else {
Object.keys(mainStats[entryId].all).forEach(taskStatusId => {
if (!['max_retake_count', 'evolution'].includes(taskStatusId)) {
lineMap[taskStatusId] = lineMap[taskStatusId].concat(['', ''])
}
})
}
} else {
Object.keys(mainStats[entryId].all).forEach(taskStatusId => {
if (!['max_retake_count', 'evolution'].includes(taskStatusId)) {
lineMap[taskStatusId] = lineMap[taskStatusId].concat(['', ''])
}
})
}
})

Expand Down

0 comments on commit f119ef0

Please sign in to comment.