diff options
author | Abyss777 <abyss@fox5.ru> | 2016-08-05 16:52:18 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-08-05 16:52:18 +0500 |
commit | 24346c8afd219c607e18306aa509f6029d3e850c (patch) | |
tree | 1e87ba61223c435af5d3f6c0ad246ddd8947ef30 /src/org/traccar | |
parent | 5a6e7582a7978341f3a2de9a81cb63252bca0bb7 (diff) | |
download | trackermap-server-24346c8afd219c607e18306aa509f6029d3e850c.tar.gz trackermap-server-24346c8afd219c607e18306aa509f6029d3e850c.tar.bz2 trackermap-server-24346c8afd219c607e18306aa509f6029d3e850c.zip |
Do not repeat header for every device
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/reports/General.java | 2 |
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(); |