Commits

evanlong  committed e9233e6

forgot to generate to cursor before sending the message

  • Participants
  • Parent commits a44f127

Comments (0)

Files changed (2)

 class RecordHandler(RealtimeHandler):
     @model.dec_set_user
     def post(self):
-        self.broadcast(self.get_argument("data"), self.request.user.id)
+        self.broadcast(model.generate_message("data",
+                                              self.get_argument("data")),
+                       self.request.user.id)
         self.write({"status":"ok"})
 
 class MainHandler(RealtimeHandler):

File static/spy.js

                         for(var i in data.messages)
                         {
                             var msg = data.messages[i];
-                            msg = JSON.parse(msg);
+                            msg = JSON.parse(msg.data);
                             playback.addGroup(msg);
                         }