From f356723d5a3b59c2dc9528eded3977b915403d0c Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Sun, 3 Nov 2019 16:21:08 +0100 Subject: [PATCH] Message on abandon --- sorteerhoed/HITStore.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sorteerhoed/HITStore.py b/sorteerhoed/HITStore.py index 986e7d1..20ed307 100644 --- a/sorteerhoed/HITStore.py +++ b/sorteerhoed/HITStore.py @@ -56,6 +56,7 @@ class HIT(Base): turk_screen_height = Column(Integer, default = None) scanned_at = Column(DateTime, default=None) fee = Column(Float(precision=2), default=None) + abandoned = False def getImagePath(self): @@ -81,7 +82,10 @@ class HIT(Base): return "working" if self.accept_time: return "accepted by worker" - return "created" + # on abandon: + if self.worker_id: + return "abandoned / awaiting worker" + return "awaiting worker"