From 62a2fd7475f2e353abf88eed7618071335ee75bf Mon Sep 17 00:00:00 2001 From: Inigo Lopez de Heredia Date: Tue, 17 Sep 2013 14:57:17 +0100 Subject: [PATCH] Issue #356 - Handle RAW_DATA_TEXT export type --- .../mapping/dataexport/RawDataExporter.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/GAE/src/org/waterforpeople/mapping/dataexport/RawDataExporter.java b/GAE/src/org/waterforpeople/mapping/dataexport/RawDataExporter.java index aa9172245b..80e4aea3e0 100644 --- a/GAE/src/org/waterforpeople/mapping/dataexport/RawDataExporter.java +++ b/GAE/src/org/waterforpeople/mapping/dataexport/RawDataExporter.java @@ -32,7 +32,6 @@ import org.waterforpeople.mapping.app.gwt.client.surveyinstance.SurveyInstanceDto; import org.waterforpeople.mapping.dataexport.service.BulkDataServiceClient; -import com.gallatinsystems.common.util.PropertyUtil; import com.gallatinsystems.framework.dataexport.applet.AbstractDataExporter; /** @@ -113,7 +112,7 @@ public void export(String serverBase, Long surveyIdentifier, Writer pw) { private void writeHeader(Writer pw, Map questions) throws Exception { - pw.write("Instance\tSubmission Date\tSubmitter"); + pw.write("Instance\tSubmission Date\tSubmitter\tDuration"); if (keyList != null) { for (String key : keyList) { pw.write("\t"); @@ -169,6 +168,11 @@ private void exportInstances(Writer pw, List idList) .replaceAll("\n", " ") .replaceAll("\t", " ").trim()); } + pw.write("\t"); + Long duration = dto.getSurveyalTime(); + if (duration != null) { + pw.write(duration.toString()); + } } for (String key : idList) { String val = responses.get(key);