equal
deleted
inserted
replaced
221 creditobj.given_by = given_by |
221 creditobj.given_by = given_by |
222 creditobj.given_to = given_to |
222 creditobj.given_to = given_to |
223 creditobj.points = points |
223 creditobj.points = points |
224 creditobj.given_time = datetime.now() |
224 creditobj.given_time = datetime.now() |
225 creditobj.save() |
225 creditobj.save() |
|
226 |
|
227 def completeTask(task, marked_by): |
|
228 """ set the status of task as completed. |
|
229 We dont have to inform parent tasks. |
|
230 That part is taken care by getTask method. |
|
231 """ |
|
232 |
|
233 task.status = "CM" |
|
234 task.save() |
|
235 |
|
236 ## generate notification appropriately using marked_by |
|
237 ## we also have to mark unread requests as invalid |
|
238 |
|
239 |