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.
--- 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 = {