示例#1
0
文件: main.py 项目: bopopescu/TurkNet
    def post(self):
        evaluation = worker_evaluation(self.worker)

        evaluation.bonus_split = int(self.request.get('bonus_split'))
        evaluation.approval = self.request.get('approve') == 'true'
        evaluation.put()

        self.redirect('/second_stage/labeling?token=' + self.token)
示例#2
0
  def post(self):
    evaluation = worker_evaluation(self.worker)

    evaluation.bonus_split = int(self.request.get('bonus_split'))
    evaluation.approval = self.request.get('approve') == 'true'
    evaluation.put()

    self.redirect('/second_stage/labeling?token=' + self.token)
示例#3
0
文件: main.py 项目: bopopescu/TurkNet
 def get(self):
     self.render(
         'priv/evaluation_form.html', {
             'labeling': worker_evaluation(self.worker).labeling,
             'form_action': self.request.url
         })
示例#4
0
 def get(self):
   self.render('priv/evaluation_form.html', {
     'labeling': worker_evaluation(self.worker).labeling
   , 'form_action': self.request.url
   })