Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/answer data #138

Merged
merged 6 commits into from
Jul 28, 2023
Merged

Bugfix/answer data #138

merged 6 commits into from
Jul 28, 2023

Conversation

ossitammi
Copy link
Contributor

Added info about page and section numbers to the answer data to separate questions with identical titles

Closes #134

@ossitammi ossitammi requested a review from jlaamanen July 20, 2023 16:01
@@ -1,7 +1,6 @@
import { FileAnswer, LanguageCode, LocalizedText } from '@interfaces/survey';
import { getDb } from '@src/database';
import { readFileSync, rmSync } from 'fs';
import { parseAsync } from 'json2csv';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this library isn't used anymore, it should also be removed from the dependencies

} catch (err) {
console.error(err);
// Newline
csvData += '\n';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If response texts included commas and newlines, would this still work?

@ossitammi ossitammi merged commit 963a534 into develop Jul 28, 2023
2 checks passed
@ossitammi ossitammi deleted the bugfix/answer-data branch July 28, 2023 10:11
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Samannimisten kysymysten korjaaminen vastausdatassa
2 participants