mirror of
https://github.com/zyphlar/LanternPowerMonitor.git
synced 2024-03-08 14:07:47 +00:00
Performance improvement for returning energy summaries from DB. Change the way MQTT values are posted. Add a BOM utf-8 char to the BOM csv, yo dawg, bom.
This commit is contained in:
@@ -10,7 +10,7 @@ public abstract class CSVWriter {
|
||||
}
|
||||
|
||||
public static String toString(CSV _csv) {
|
||||
StringBuilder out = new StringBuilder();
|
||||
StringBuilder out = new StringBuilder("\uFEFF");
|
||||
if (CollectionUtils.isNotEmpty(_csv.getHeaders())) {
|
||||
out.append(CollectionUtils.transformToCommaSeparated(_csv.getHeaders(), _h -> "\"" + _h + "\""));
|
||||
out.append("\r\n");
|
||||
|
||||
Reference in New Issue
Block a user