diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2013-09-09 23:31:57 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2013-09-09 23:31:57 -0700 |
commit | ed9856c1b29d685877f8b8e81f6066fb78c8ce60 (patch) | |
tree | b01aab64ceb8bcdf3143fa2111a4ff1def1bd671 /src/com/p4square/grow/backend/resources/SurveyResource.java | |
parent | e3da3e80ad4a7d5518f82b18831587e244f19c74 (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.java | 3 |
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) { |