Skip to content

Commit f91f5ab

Browse files
committed
Merge branch 'master' of https://github.com/ImagingDataCommons/IDC-Common into idc-test
2 parents a098bf7 + 4e88713 commit f91f5ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

idc_collections/collex_metadata_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,7 @@ def create_file_manifest(request, cohort=None):
835835
hdr = "{}Manifest for cohort '{}'{}".format(cmt_delim, cohort.name, linesep)
836836
elif header == 'user_email' and request.user.is_authenticated:
837837
hdr = "{}User: {}{}".format(cmt_delim, request.user.email, linesep)
838+
#filters may not be defined or sent if this is a cart manifest
838839
elif header == 'cohort_filters' and not from_cart:
839840
filter_str = cohort.get_filter_display_string() if cohort else BigQuerySupport.build_bq_where_clause(filters)
840841
hdr = "{}Filters: {}{}".format(cmt_delim, filter_str, linesep)
@@ -1816,7 +1817,7 @@ def get_table_data_with_cart_data(tabletype, sortarg, sortdir, current_filters,f
18161817
return [num_found, table_arr]
18171818

18181819

1819-
def get_cart_data_studylvl(filtergrp_list, partitions, limit, offset, length, mxseries,results_lvl='StudyInstanceUID'):
1820+
def get_cart_data_studylvl(filtergrp_list, partitions, limit, offset, length, mxseries,results_lvl='StudyInstanceUID', with_records=True):
18201821
aggregate_level = "StudyInstanceUID"
18211822
versions=ImagingDataCommonsVersion.objects.filter(
18221823
active=True

0 commit comments

Comments
 (0)