aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/reports/General.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/reports/General.java')
-rw-r--r--src/org/traccar/reports/General.java2
1 files changed, 1 insertions, 1 deletions
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<Long> deviceIds, Collection<Long> 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();