mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 22:43:58 +00:00
SYNC: changed chart logic
This commit is contained in:
committed by
Diflow
parent
9bff8608c1
commit
e86cc97cdf
@@ -313,19 +313,9 @@ module.exports = {
|
|||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
processor.finalize();
|
processor.finalize();
|
||||||
return processor.charts;
|
return {
|
||||||
},
|
charts: processor.charts,
|
||||||
|
columns: processor.availableColumns,
|
||||||
detectChartColumns_meta: true,
|
};
|
||||||
async detectChartColumns({ jslid }) {
|
|
||||||
const datastore = new JsonLinesDatastore(getJslFileName(jslid));
|
|
||||||
const processor = new ChartProcessor();
|
|
||||||
processor.autoDetectCharts = false;
|
|
||||||
await datastore.enumRows(row => {
|
|
||||||
processor.addRow(row);
|
|
||||||
return true;
|
|
||||||
});
|
|
||||||
processor.finalize();
|
|
||||||
return processor.availableColumns;
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user