Fix CSV export headline (CC-32)

pull/37/head
HardiReady 2018-06-17 10:47:02 +02:00
parent bf8ff5d2f6
commit 026a3611a6
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "opt-cc", "name": "opt-cc",
"version": "1.7.6", "version": "1.7.7",
"author": "Florian Hartwich <hardi@noarch.de>", "author": "Florian Hartwich <hardi@noarch.de>",
"private": true, "private": true,
"scripts": { "scripts": {

View File

@ -71,7 +71,7 @@ export class ScoreboardComponent implements OnChanges {
exportCSV() { exportCSV() {
let csvOut = ''; let csvOut = '';
for (let i = 0; i < this.tableHead.length; i++) { for (let i = 0; i < this.tableHead.length; i++) {
csvOut += this.tableHead[i]; csvOut += this.tableHead[i].head;
if (i !== this.tableHead.length - 1) { if (i !== this.tableHead.length - 1) {
csvOut += ','; csvOut += ',';
} }