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

Method serialize_trainer_annotate

shared/database/task/task.py:521–538  ·  view source on GitHub ↗
(self, session)

Source from the content-addressed store, hash-verified

519 return query.first()
520
521 def serialize_trainer_annotate(self, session):
522
523 guide = None
524 if self.guide_id:
525 guide = self.guide.serialize_for_trainer()
526
527 return {
528 'id': self.id,
529 'job_id': self.job_id,
530 'project_id': self.project_id,
531 'task_type': self.task_type,
532 'job_type': self.job_type,
533 'status': self.job_type,
534 'file': self.file.serialize_with_annotations(session = session),
535 'guide': guide,
536 'label_dict': self.label_dict,
537 'assignee_user_id': self.assignee_user_id,
538 }
539
540 def serialize_builder_view_by_id(self, session):
541

Callers 3

task_by_id_coreFunction · 0.80
task_next_by_job_apiFunction · 0.80

Calls 2

serialize_for_trainerMethod · 0.80

Tested by

no test coverage detected