summaryrefslogtreecommitdiff
path: root/src/com/p4square/grow/backend/resources/SurveyResource.java
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2013-09-09 23:31:57 -0700
committerJesse Morgan <jesse@jesterpm.net>2013-09-09 23:31:57 -0700
commit8c3a2478c36a998189f69f69e466c257be450a87 (patch)
treed240dbcab448f68e46e6d23418f4898c6cd332ce /src/com/p4square/grow/backend/resources/SurveyResource.java
parent4a5e3d65797fd5bc7e2909f9d39c213d5e8167eb (diff)
Adding the progress bar to the assessment.
Also adding a header to the Assessment Results page.
Diffstat (limited to 'src/com/p4square/grow/backend/resources/SurveyResource.java')
-rw-r--r--src/com/p4square/grow/backend/resources/SurveyResource.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/p4square/grow/backend/resources/SurveyResource.java b/src/com/p4square/grow/backend/resources/SurveyResource.java
index 76cbe30..83c4cad 100644
--- a/src/com/p4square/grow/backend/resources/SurveyResource.java
+++ b/src/com/p4square/grow/backend/resources/SurveyResource.java
@@ -65,7 +65,8 @@ public class SurveyResource extends ServerResource {
// Get the first question id from db?
Map<?, ?> questionSummary = getQuestionsSummary();
- return new StringRepresentation(String.valueOf((Integer) questionSummary.get("count")));
+ return new StringRepresentation("{\"count\":" +
+ String.valueOf((Integer) questionSummary.get("count")) + "}");
}
if (mQuestionId != null) {