Fix the deadline counter to start counting only after Task claim is accepted.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Sat, 03 Oct 2009 22:17:58 +0530
changeset 3002 2c5e9cd4ba4d
parent 3001 1698cca3d912
child 3003 6a84c1ff5b5c
Fix the deadline counter to start counting only after Task claim is accepted. Deadline counter used to start when the task was claimed to be requested. This commit fixes that.
app/soc/modules/ghop/views/models/task.py
--- a/app/soc/modules/ghop/views/models/task.py	Thu Oct 01 20:48:11 2009 +0200
+++ b/app/soc/modules/ghop/views/models/task.py	Sat Oct 03 22:17:58 2009 +0530
@@ -860,13 +860,9 @@
 
     # TODO: this can be separated into several methods that handle the changes
     if validation == 'claim_request' and action == 'request':
-      deadline = datetime.datetime.now() + datetime.timedelta(
-            hours=entity.time_to_complete)
-
       properties = {
           'status': 'ClaimRequested',
           'user': user_account,
-          'deadline': deadline,
           }
 
       st_filter = {