File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -675,20 +675,18 @@ def get_collaborator_samples(self, request: CollaboratorSamplesRequest) -> list[
675
675
SampleFilter .BY_INTERNAL_ID_OR_NAME_SEARCH ,
676
676
SampleFilter .ORDER_BY_CREATED_AT_DESC ,
677
677
SampleFilter .IS_NOT_CANCELLED ,
678
- SampleFilter .LIMIT ,
679
678
]
680
679
samples : Query = apply_sample_filter (
681
680
samples = self ._get_query (table = Sample ),
682
681
customer_entry_ids = collaborator_ids ,
683
682
search_pattern = request .enquiry ,
684
683
filter_functions = filters ,
685
- limit = request .limit ,
686
684
)
687
685
if request .order_type :
688
- samples .join (Application ).filter (
686
+ samples .join (ApplicationVersion ). join ( Application ).filter (
689
687
Application .order_type_applications .contains (request .order_type )
690
688
)
691
- return samples .all ()
689
+ return samples .limit ( request . limit ). all ()
692
690
693
691
def _get_samples_by_customer_and_subject_id_query (
694
692
self , customer_internal_id : str , subject_id : str
You can’t perform that action at this time.
0 commit comments