Fix: rankingi csv

This commit is contained in:
Marcin Szczepański 2019-12-08 21:02:51 +01:00
parent 4320bebbc5
commit a4eef5628d
1 changed files with 3 additions and 1 deletions

View File

@ -62,8 +62,10 @@ export class RankingComponent implements OnInit, OnDestroy {
}
downloadCSVResults() {
const arr = this.data;
arr.map(x => delete x['username']);
// 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 {