aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-08-05 16:52:18 +0500
committerAbyss777 <abyss@fox5.ru>2016-08-05 16:52:18 +0500
commit24346c8afd219c607e18306aa509f6029d3e850c (patch)
tree1e87ba61223c435af5d3f6c0ad246ddd8947ef30 /src
parent5a6e7582a7978341f3a2de9a81cb63252bca0bb7 (diff)
downloadtrackermap-server-24346c8afd219c607e18306aa509f6029d3e850c.tar.gz
trackermap-server-24346c8afd219c607e18306aa509f6029d3e850c.tar.bz2
trackermap-server-24346c8afd219c607e18306aa509f6029d3e850c.zip
Do not repeat header for every device
Diffstat (limited to 'src')
-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();