From 8c3a2478c36a998189f69f69e466c257be450a87 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Mon, 9 Sep 2013 23:31:57 -0700 Subject: Adding the progress bar to the assessment. Also adding a header to the Assessment Results page. --- src/com/p4square/grow/backend/resources/SurveyResource.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/com/p4square/grow/backend/resources/SurveyResource.java') 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) { -- cgit v1.2.3