def start_task(self):
     Task.start_task(self)
     # store messages in message_votes
     for m in self.messages:
         # this adds the message to the db
         m = self.MessageType(str(self.experiment.exp_id),
                              m['text'].encode('utf-8'), str(m['_id']),
                              m['shortname'], self.task_id,
                              {'task_type': self.task_type})
    def start_task(self):
        Task.start_task(self)

        # create docs in votesc collection
        def assign_task_id(m):
            m['task_id'] = str(self.task_id)
            m['task_type'] = str(self.task_type)
            db[self.votesc].insert(m)

        for m in self.messages:
            assign_task_id(m)
            
        for m in self.already_fixed_messages:
            assign_task_id(m)