Fix: rankingi csv

This commit is contained in:
Marcin Szczepański 2019-12-08 21:02:51 +01:00
parent 4320bebbc5
commit a4eef5628d

View File

@ -62,8 +62,10 @@ export class RankingComponent implements OnInit, OnDestroy {
} }
downloadCSVResults() { downloadCSVResults() {
const arr = this.data;
arr.map(x => delete x['username']);
// tslint:disable-next-line:no-unused-expression // tslint:disable-next-line:no-unused-expression
new ngxCsv(this.data, this.group.name + '_ranking_' + this.typeOfRankingToDisplay); new ngxCsv(arr, this.group.name + '_ranking_' + this.typeOfRankingToDisplay);
} }
ngOnDestroy(): void { ngOnDestroy(): void {