| 215 | |
| 216 | |
| 217 | def task_complete_transaction_normal(session, |
| 218 | task): |
| 219 | task.count_instances_changed = task.file.count_instances_changed |
| 220 | |
| 221 | # TODO more reflection on handling None vs 0 for this case |
| 222 | if task.count_instances_changed == None: |
| 223 | task.count_instances_changed = 0 |
| 224 | |
| 225 | # TODO Better handling if trainer doesn't have an account created |
| 226 | # Should have one when enabling API so this is more for testing / edge cases? |
| 227 | # This is related to a builder completing a task (That's on the market) |
| 228 | |
| 229 | return True |
| 230 | |
| 231 | |
| 232 | def task_complete_exam(session, |