Better way to do file splitting? Want to track the stuff in source control but may get a bit awkward if lots of file types...
(
self,
session = None,
regen_url = True)
| 518 | } |
| 519 | |
| 520 | def serialize_with_annotations( |
| 521 | self, |
| 522 | session = None, |
| 523 | regen_url = True): |
| 524 | |
| 525 | """ |
| 526 | Better way to do file splitting? |
| 527 | Want to track the stuff in source control but may get a bit awkward |
| 528 | if lots of file types... |
| 529 | """ |
| 530 | instance_list = session.query(Instance).filter( |
| 531 | Instance.file_id == self.id, |
| 532 | Instance.soft_delete == False |
| 533 | ).all() |
| 534 | |
| 535 | file = self.serialize_with_type(session, regen_url = regen_url) |
| 536 | file['instance_list'] = [instance.serialize_with_label() for instance in instance_list] |
| 537 | |
| 538 | return file |
| 539 | |
| 540 | def serialize_annotations_only(self): |
| 541 |
no test coverage detected