File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -439,7 +439,7 @@ def construct_zip_file_path(data_object: models.DataObject) -> str:
439
439
# - We probably want to reference the workflow activity but that
440
440
# involves a complicated query... need a way to join that information
441
441
# in the original query (possibly in the sqlalchemy relationship)
442
- omics_processing = data_object .omics_processing
442
+ omics_processing = data_object .omics_processings [ 0 ]
443
443
biosamples = cast (Optional [list [models .Biosample ]], omics_processing .biosample_inputs )
444
444
445
445
def safe_name (name : str ) -> str :
Original file line number Diff line number Diff line change @@ -824,6 +824,12 @@ class DataObject(Base):
824
824
omics_processing_id = Column (String , ForeignKey ("omics_processing.id" ), nullable = True )
825
825
omics_processing = relationship (OmicsProcessing )
826
826
827
+ omics_processings = relationship (
828
+ OmicsProcessing ,
829
+ secondary = omics_processing_output_association ,
830
+ back_populates = "outputs" ,
831
+ )
832
+
827
833
# Define a property that can be used to shortcut calculating counts.
828
834
# Useful when downstream code can more efficiently determine download
829
835
# counts for a batch of DataObjects and inject those counts.
You can’t perform that action at this time.
0 commit comments