# HG changeset patch # User Madhusudan.C.S # Date 1254588478 -19800 # Node ID 2c5e9cd4ba4d57bd44098200d5ccfc996a6a453a # Parent 1698cca3d9123f7881769639da523793c7578769 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. diff -r 1698cca3d912 -r 2c5e9cd4ba4d 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 = {