Message on abandon
This commit is contained in:
parent
f329f602bf
commit
f356723d5a
1 changed files with 5 additions and 1 deletions
|
@ -56,6 +56,7 @@ class HIT(Base):
|
||||||
turk_screen_height = Column(Integer, default = None)
|
turk_screen_height = Column(Integer, default = None)
|
||||||
scanned_at = Column(DateTime, default=None)
|
scanned_at = Column(DateTime, default=None)
|
||||||
fee = Column(Float(precision=2), default=None)
|
fee = Column(Float(precision=2), default=None)
|
||||||
|
abandoned = False
|
||||||
|
|
||||||
|
|
||||||
def getImagePath(self):
|
def getImagePath(self):
|
||||||
|
@ -81,7 +82,10 @@ class HIT(Base):
|
||||||
return "working"
|
return "working"
|
||||||
if self.accept_time:
|
if self.accept_time:
|
||||||
return "accepted by worker"
|
return "accepted by worker"
|
||||||
return "created"
|
# on abandon:
|
||||||
|
if self.worker_id:
|
||||||
|
return "abandoned / awaiting worker"
|
||||||
|
return "awaiting worker"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue