Merge pull request #729 from ritzalam/add-missing-info-to-poll-result-recording

- poll results recording has missing data required for processing
This commit is contained in:
Richard Alam 2015-07-28 14:51:45 -04:00
commit cbca7a9d21

View File

@ -68,6 +68,9 @@ trait PollApp {
val shape = new scala.collection.mutable.HashMap[String, Object]()
shape += "num_respondents" -> new Integer(result.numRespondents)
shape += "num_responders" -> new Integer(result.numResponders)
shape += "type" -> "poll_result"
shape += "id" -> result.id
shape += "status" -> "DRAW_END"
val answers = new ArrayBuffer[java.util.HashMap[String, Object]];
result.answers.foreach(ans => {