Generate realistic sample data

This commit is contained in:
Adrian Rumpold
2025-07-10 12:32:31 +02:00
parent 71e5131aa1
commit 176f68e32d
3 changed files with 22 additions and 29 deletions

View File

@@ -22,7 +22,6 @@ const url = `https://docs.google.com/spreadsheets/d/${sheet_id}/gviz/tq?tqx=out:
export interface ResponseData {
timestamp: number;
position: string;
question: string;
response: number;
}
@@ -40,7 +39,6 @@ export function parseCSV(csv: string): ResponseData[] {
});
return Object.entries(responses).flatMap(([category, response]) => ({
timestamp: new Date(row["Timestamp"]).getTime(),
position: row["Position"],
question: category,
response: response,
}));