|
|
@ -146,11 +146,6 @@ export class Exporter { |
|
|
|
|
|
|
|
|
|
|
|
private _writeCsv(stream, series) { |
|
|
|
private _writeCsv(stream, series) { |
|
|
|
for(let row of series.values) { |
|
|
|
for(let row of series.values) { |
|
|
|
const isEmpty = _.every( |
|
|
|
|
|
|
|
_.slice(row, 1), |
|
|
|
|
|
|
|
val => val === null |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
if(!isEmpty) { |
|
|
|
|
|
|
|
let csvRow = {}; |
|
|
|
let csvRow = {}; |
|
|
|
for(let col in series.columns) { |
|
|
|
for(let col in series.columns) { |
|
|
|
csvRow[series.columns[col]] = row[col]; |
|
|
|
csvRow[series.columns[col]] = row[col]; |
|
|
@ -159,7 +154,6 @@ export class Exporter { |
|
|
|
this._task.progress.exportedRowsCount++; |
|
|
|
this._task.progress.exportedRowsCount++; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private _getFilename(extension: string): string { |
|
|
|
private _getFilename(extension: string): string { |
|
|
|
return `${this._task.id}.${extension}`; |
|
|
|
return `${this._task.id}.${extension}`; |
|
|
|