MCPcopy Index your code
hub / github.com/diffgram/diffgram / task_complete_transaction_normal

Function task_complete_transaction_normal

shared/utils/task/task_complete.py:217–229  ·  view source on GitHub ↗
(session,
                                     task)

Source from the content-addressed store, hash-verified

215
216
217def 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
232def task_complete_exam(session,

Callers 1

task_completeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected