mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-17 11:35:33 -04:00
(census) minor fix
This commit is contained in:
parent
495d2a900e
commit
16f51c60bd
@ -244,7 +244,7 @@ router.get('/census/export', handleErrorAsync(async (req, res) => {
|
||||
answer[`${i}_aggr_${key}`] = calculateAggregate(aggr, answerForAggregate) ? 1 : '';
|
||||
}
|
||||
} else {
|
||||
answer[`${i}_`] = (answers[i.toString()] || '').replace(/\n/g, ' | ');
|
||||
answer[`${i}_`] = (answers[i.toString()] || '').toString().replace(/\n/g, ' | ');
|
||||
for (const [key, aggr] of Object.entries(question.aggregates || {})) {
|
||||
answer[`${i}_aggr_${key}`] = calculateAggregate(aggr, new Set([answer[`${i}_`]])) ? 1 : '';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user