From 24346c8afd219c607e18306aa509f6029d3e850c Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Fri, 5 Aug 2016 16:52:18 +0500 Subject: Do not repeat header for every device --- src/org/traccar/reports/General.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar/reports') diff --git a/src/org/traccar/reports/General.java b/src/org/traccar/reports/General.java index 595dd49f9..8a2b3940b 100644 --- a/src/org/traccar/reports/General.java +++ b/src/org/traccar/reports/General.java @@ -56,9 +56,9 @@ public final class General { public static String getCsv(long userId, Collection deviceIds, Collection groupIds, Date from, Date to) throws SQLException { CsvBuilder csv = new CsvBuilder(); + csv.addHeaderLine(new GeneralReport()); for (long deviceId: ReportUtils.getReportedDevices(deviceIds, groupIds)) { Context.getPermissionsManager().checkDevice(userId, deviceId); - csv.addHeaderLine(new GeneralReport()); csv.addLine(calculateGeneralResult(deviceId, from, to)); } return csv.get(); -- cgit v1.2.3