equal
deleted
inserted
replaced
187 """ set the status of task to CP. |
187 """ set the status of task to CP. |
188 """ |
188 """ |
189 |
189 |
190 main_task.status = "CP" |
190 main_task.status = "CP" |
191 main_task.save() |
191 main_task.save() |
|
192 |
|
193 def assignCredits(task, given_by, given_to, points): |
|
194 """ make a proper request object. |
|
195 """ |
|
196 |
|
197 addCredits(task, given_by, given_to, points) |
|
198 |
|
199 def addCredits(task, given_by, given_to, points): |
|
200 """ add credit to the credits model. |
|
201 """ |
|
202 |
|
203 creditobj = Credit() |
|
204 creditobj.task = task |
|
205 creditobj.given_by = given_by |
|
206 creditobj.given_to = given_to |
|
207 creditobj.points = points |
|
208 creditobj.given_time = datetime.now() |
|
209 creditobj.save() |