Ejemplo n.º 1
0
 def save(self, *args, **kwargs):
     if not self.id and self.mturk_assignment:
         self.sandbox = self.mturk_assignment.hit.sandbox
     if not self.reward:
         from common.utils import compute_label_reward
         self.reward = compute_label_reward(self)
     super(ResultBase, self).save(*args, **kwargs)
Ejemplo n.º 2
0
 def save(self, *args, **kwargs):
     if not self.id and self.mturk_assignment:
         self.sandbox = self.mturk_assignment.hit.sandbox
     if not self.reward:
         from common.utils import compute_label_reward
         self.reward = compute_label_reward(self)
     super(ResultBase, self).save(*args, **kwargs)
Ejemplo n.º 3
0
 def save(self, *args, **kwargs):
     if not self.reward:
         self.reward = compute_label_reward(self)
     super(PhotoLabelBase, self).save(*args, **kwargs)